Changeset 6

Show
Ignore:
Timestamp:
01/26/04 15:32:32 (5 years ago)
Author:
jajcus
Message:

- ignore case in received channel commands

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/jjigw.py

    r5 r6  
    252252        nprefix=normalize(prefix) 
    253253        nnick=normalize(self.session.nick) 
    254         if nprefix==nnick or nprefix.startswith(nnick+"!"))
     254        if nprefix==nnick or nprefix.startswith(nnick+"!")
    255255            if self.state=="join": 
    256256                self.debug("Channel %r joined!" % (self.name,)) 
     
    495495            f=None 
    496496            for c in self.channels.keys(): 
    497                 if params and params[0]==c: 
     497                if params and normalize(params[0])==c: 
    498498                    f=getattr(self.channels[c],"irc_cmd_"+command,None) 
    499499                    if f: 
     
    552552    def join(self,stanza): 
    553553        to=stanza.get_to() 
    554         channel=node_to_channel(to,self.default_encoding) 
     554        channel=node_to_channel(to.node,self.default_encoding) 
    555555        if self.channels.has_key(normalize(channel)): 
    556556            return