- Timestamp:
- 06/21/06 17:54:41 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/amazonbot/amazonbot.py
r15 r16 120 120 if msg[0] == '!': 121 121 words = shlex.split(ununicoding(msg, 'utf-8')[1:]) 122 if not words: 123 return False 122 124 method = getattr(self, 'onmsg_%s' % words[0], lambda *arg: False) 123 125 return method(c, e, to, words[1:]) # words[0] == command name
Note: See TracChangeset
for help on using the changeset viewer.