notify_error: Don't send a duplicate message if DEV_CHANNEL is the current channel

This commit is contained in:
nyuszika7h 2015-04-16 18:52:57 +02:00
parent cc3805f064
commit 4b01eb2990

View File

@ -23,7 +23,9 @@ def notify_error(cli, chan, target_logger):
target_logger(tb) target_logger(tb)
cli.msg(chan, msg) if (not botconfig.PASTEBIN_ERRORS) or (chan != botconfig.DEV_CHANNEL):
# Don't send a duplicate message if DEV_CHANNEL is the current channel.
cli.msg(chan, msg)
if botconfig.PASTEBIN_ERRORS and botconfig.DEV_CHANNEL: if botconfig.PASTEBIN_ERRORS and botconfig.DEV_CHANNEL:
try: try: