possible solution to issue
parent
57c523e526
commit
a3a00783aa
|
@ -184,7 +184,7 @@ class Bot(irc.bot.SingleServerIRCBot):
|
||||||
for lstnr in pinhook.plugin.lstnrs:
|
for lstnr in pinhook.plugin.lstnrs:
|
||||||
try:
|
try:
|
||||||
self.logger.debug('whispering to listener: {}'.format(lstnr))
|
self.logger.debug('whispering to listener: {}'.format(lstnr))
|
||||||
output = pinhook.plugin.lstnrs[lstnr](self.Message(
|
listen_output = pinhook.plugin.lstnrs[lstnr](self.Message(
|
||||||
channel=chan,
|
channel=chan,
|
||||||
text=text,
|
text=text,
|
||||||
nick_list=nick_list,
|
nick_list=nick_list,
|
||||||
|
@ -199,6 +199,8 @@ class Bot(irc.bot.SingleServerIRCBot):
|
||||||
self.logger.debug(output.msg_type)
|
self.logger.debug(output.msg_type)
|
||||||
self.logger.debug(output.msg_type == pinhook.plugin.OutputType.Action)
|
self.logger.debug(output.msg_type == pinhook.plugin.OutputType.Action)
|
||||||
self.logger.debug(output.msg)
|
self.logger.debug(output.msg)
|
||||||
|
if listen_output:
|
||||||
|
output = listen_output
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.exception('issue with listener {}'.format(lstnr))
|
self.logger.exception('issue with listener {}'.format(lstnr))
|
||||||
self.logger.debug(f'returning output: {output.msg}')
|
self.logger.debug(f'returning output: {output.msg}')
|
||||||
|
|
Loading…
Reference in New Issue