add breaks

pull/63/head
Mallory Hancock 2019-03-02 10:55:32 -08:00
parent 084403a7b0
commit 28a3031112
1 changed files with 2 additions and 0 deletions

View File

@ -254,12 +254,14 @@ class Bot(irc.bot.SingleServerIRCBot):
c.privmsg(chan, msg)
except irc.client.MessageTooLong:
self.logger.error('output message too long: {}'.format(msg))
break
elif output.msg_type == pinhook.plugin.OutputType.Action:
self.logger.debug('output action: {}'.format(msg))
try:
c.action(chan, msg)
except irc.client.MessageTooLong:
self.logger.error('output message too long: {}'.format(msg))
break
else:
self.logger.warning("Unsupported output type '{}'".format(output.msg_type))
time.sleep(.5)