fix error name

pull/63/head
Mallory Hancock 2019-03-02 10:53:03 -08:00
parent f329a03350
commit 084403a7b0
1 changed files with 2 additions and 2 deletions

View File

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