Fixed issue with bot crashing when processing a None message (#49)
Fixes #46
This commit is contained in:
parent
39be6ea582
commit
7c7d92948a
@ -237,6 +237,8 @@ class Bot(irc.bot.SingleServerIRCBot):
|
||||
self.process_output(c, chan, output)
|
||||
|
||||
def process_output(self, c, chan, output):
|
||||
if not output.msg:
|
||||
return
|
||||
for msg in output.msg:
|
||||
if len(msg.encode('UTF-8')) > 512:
|
||||
self.logger.error('output message too long: {}'.format(msg))
|
||||
|
Loading…
x
Reference in New Issue
Block a user