add breaks
parent
084403a7b0
commit
28a3031112
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue