Changeset 661 for tools

Show
Ignore:
Timestamp:
09/30/07 13:21:26 (14 months ago)
Author:
michiel
Message:

revert change for eventtype. not needed.
Update version string for the bot.

Location:
tools/nsa
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • tools/nsa/lib/ircbot.py

    r659 r661  
    209209        Used when answering a CTCP VERSION request. 
    210210        """ 
    211         return "Yuk yuk yuk" 
     211        return "NSA-bot by Michiel van Baak" 
    212212 
    213213    def jump_server(self, msg="Changing servers"): 
  • tools/nsa/lib/irclib.py

    r659 r661  
    10411041        m = "on_" + e.eventtype() 
    10421042        if hasattr(self, m): 
    1043             getattr(self, m)(e.eventtype, c, e) 
     1043            getattr(self, m)(c, e) 
    10441044 
    10451045    def _dcc_disconnect(self, c, e): 
  • tools/nsa/nsa.py

    r660 r661  
    146146                self.channel = channel 
    147147 
    148         def on_nicknameinuse(self, ev, c, e): 
     148        def on_nicknameinuse(self, c, e): 
    149149                c.nick(c.get_nickname() + "-1") 
    150150         
    151         def on_welcome(self, ev, c, e): 
     151        def on_welcome(self, c, e): 
    152152                c.join(self.channel) 
    153153         
    154         def on_pubmsg(self, ev, c, e): 
     154        def on_pubmsg(self, c, e): 
    155155                msg = e.arguments()[0] 
    156156