Changeset 17
- Timestamp:
- 08/10/06 18:10:40 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/amazonbot/amazonbot.py
r16 r17 116 116 117 117 if __debug__: 118 print >> sys.stderr, 'DEBUG> pubmsg incoming "%s", should be reply to %s' % (ununicoding(msg, 'euc-jp'), to) 118 try: 119 print >> sys.stderr, 'DEBUG> pubmsg incoming "%s", should be reply to %s' % (ununicoding(msg, 'euc-jp'), to) 120 except: 121 print >> sys.stderr, 'DEBUG> pubmsg incoming, but could not en/decode message. should be reply to %s' % to 119 122 120 123 if msg[0] == '!': 121 words = shlex.split(ununicoding(msg, 'utf-8')[1:]) 124 try: 125 words = shlex.split(ununicoding(msg, 'utf-8')[1:]) 126 except: 127 return False 122 128 if not words: 123 129 return False
Note: See TracChangeset
for help on using the changeset viewer.