Changeset 27


Ignore:
Timestamp:
02/21/07 13:02:55 (18 years ago)
Author:
atzm
Message:
  • fixed a bug
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/amazonbot/amazonbot.py

    r26 r27  
    501501    def onact_nick(self, msg, c, e, to): 
    502502        nick   = nm_to_n(e.source()) 
    503         nickto = nick.translate(self.NICK_TRANS_TABLE) 
     503        nickto = nick[0] + nick[1:].translate(self.NICK_TRANS_TABLE) 
     504        if nick == nickto: 
     505            nickto = nick + '_' 
    504506        _debug('in nick action: %s to %s in %s (%s)' % (msg, nick, to, nickto)) 
    505507        c.notice(to, msg) 
Note: See TracChangeset for help on using the changeset viewer.