fix, parts without a message raised an exception.

This commit is contained in:
Elián Hanisch
2010-10-16 12:15:56 -03:00
parent b583933e5e
commit 58a38c8aff

View File

@ -545,7 +545,7 @@ class Encyclopedia(callbacks.Plugin):
queue(irc, target, r)
def doPart(self, irc, msg):
if not msg.args[1].startswith('requested by'):
if len(msg.args) < 2 or not msg.args[1].startswith('requested by'):
return
#self.log.debug('msg: %s', msg.args)