add breaks

This commit is contained in:
Mallory Hancock 2019-03-02 10:55:32 -08:00
부모 084403a7b0
커밋 28a3031112

파일 보기

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