lehmannro / pyhkal2

IRC bot with bling bling
7 stars 2 forks source link

bot does not keep a nicklist #4

Closed freddyb closed 14 years ago

freddyb commented 14 years ago

the bot's nicklist is not updated properly. we require to keep track of NICK, PART, JOIN, QUIT, KICK - Anything else?

We could make use of "Registered"-Quits, but appears to be hard to seperate from the normal "remove from nicklist" function on quit

freddyb commented 14 years ago

nicklist should be fixed with cdae27632b87b489174197e5f53f88822ac87936

Janno commented 14 years ago

Using 49f6b45f2679106a9d3c77d3387bb5f37e3249a4, this occured exactly once:

Traceback (most recent call last): File "/home/pyhkal/pyhkal2/var/lib/python2.6/site-packages/twisted/words/protocols/irc.py", line 2279, in dataReceived basic.LineReceiver.dataReceived(self, data.replace('\r', '')) File "/home/pyhkal/pyhkal2/var/lib/python2.6/site-packages/twisted/protocols/basic.py", line 251, in dataReceived why = self.lineReceived(line) File "/home/pyhkal/pyhkal2/contrib/irc.py", line 324, in lineReceived irc.IRCClient.lineReceived(self, data) File "/home/pyhkal/pyhkal2/var/lib/python2.6/site-packages/twisted/words/protocols/irc.py", line 2287, in lineReceived self.handleCommand(command, prefix, params) --- --- File "/home/pyhkal/pyhkal2/var/lib/python2.6/site-packages/twisted/words/protocols/irc.py", line 2331, in handleCommand method(prefix, params) File "/home/pyhkal/pyhkal2/var/lib/python2.6/site-packages/twisted/words/protocols/irc.py", line 1815, in irc_PRIVMSG self.privmsg(user, channel, message) File "/home/pyhkal/pyhkal2/contrib/irc.py", line 193, in privmsg event = IRCMessage(self.nickdb[nick], target, message) exceptions.KeyError: u'bimpo'

Though it does not seem to prevent anything from working as far as I can tell.

lehmannro commented 14 years ago

This should have been fixed in the recent revisions to the IRC module. See cdae27632b87b489174197e5f53f88822ac87936 and related commits.