Changeset 16 for trunk


Ignore:
Timestamp:
06/21/06 17:54:41 (18 years ago)
Author:
atzm
Message:

bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/amazonbot/amazonbot.py

    r15 r16  
    120120                if msg[0] == '!': 
    121121                        words = shlex.split(ununicoding(msg, 'utf-8')[1:]) 
     122                        if not words: 
     123                                return False 
    122124                        method = getattr(self, 'onmsg_%s' % words[0], lambda *arg: False) 
    123125                        return method(c, e, to, words[1:]) # words[0] == command name 
Note: See TracChangeset for help on using the changeset viewer.