Changeset 26
- Timestamp:
- 02/20/07 12:49:10 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/amazonbot/amazonbot.py
r25 r26 9 9 10 10 import re 11 import string 11 12 import sys 12 13 import time … … 497 498 return True 498 499 500 NICK_TRANS_TABLE = string.maketrans('-_i1z2o0s5bdnmft', '_-1i2z0o5sdbmntf') 499 501 def onact_nick(self, msg, c, e, to): 500 nick = nm_to_n(e.source()) 501 _debug('in nick action: %s to %s in %s' % (msg, nick, to)) 502 nick = nm_to_n(e.source()) 503 nickto = nick.translate(self.NICK_TRANS_TABLE) 504 _debug('in nick action: %s to %s in %s (%s)' % (msg, nick, to, nickto)) 502 505 c.notice(to, msg) 503 c.nick( '%s_' % nick)506 c.nick(nickto) 504 507 return True 505 508
Note: See TracChangeset
for help on using the changeset viewer.