notify_error: Don't send a duplicate message if DEV_CHANNEL is the current channel
This commit is contained in:
parent
cc3805f064
commit
4b01eb2990
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user