#12 Dies when chan mode is changed.

open
nobody
None
5
2002-06-07
2002-06-07
Anonymous
No

Hello, I started using a2k a short while ago and it
fit my needs perfectly. But today I discovered a nasty
bug in it. It disconnects if an op sets channel mode -
l. All other channel modes seem to work without
problems. I guess it is because it expects +l/-l to
have an parameter, which is true for +l but not true
for -l.

//Anders Ĺstrand

Traceback (innermost last):
File "./a2k.py", line 30, in ?
bot = a2kbot.a2kbot()
File "./a2kbot.py", line 117, in __init__
self.start()
File "./ircbot.py", line 235, in start
SimpleIRCClient.start(self)
File "./irclib.py", line 867, in start
self.ircobj.process_forever()
File "./irclib.py", line 232, in process_forever
self.process_once(timeout)
File "./irclib.py", line 219, in process_once
self.process_data(i)
File "./irclib.py", line 189, in process_data
c.process_data()
File "./irclib.py", line 562, in process_data
self._handle_event(Event(command, prefix, target,
argument
File "./irclib.py", line 566, in _handle_event
self.irclibobj._handle_event(self, event)
File "./irclib.py", line 316, in _handle_event
if handler[1](connection, event) == "NO MORE":
File "./ircbot.py", line 123, in _on_mode
modes = parse_channel_modes(string.join(e.arguments
()))
File "./irclib.py", line 1069, in parse_channel_modes
return _parse_modes(mode_string, "bklvo")
File "./irclib.py", line 1093, in _parse_modes
modes.append([sign, ch, args[arg_count]])
IndexError: list index out of range

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks