From e714e4216cd718809621fc15b5a002b0f8459195 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Sun, 24 May 2015 17:55:59 +0200 Subject: [PATCH] Send !revealroles output to channel if called in-channel in debug mode This was broken by the previous commit. --- src/wolfgame.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index cfec82d..da8c3f0 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -7467,7 +7467,10 @@ if botconfig.DEBUG_MODE or botconfig.ALLOWED_NORMAL_MODE_COMMANDS: if chan == nick: pm(cli, nick, var.break_long_message(output, ' | ')) else: - cli.notice(nick, var.break_long_message(output, ' | ')) + if botconfig.DEBUG_MODE: + cli.msg(chan, var.break_long_message(output, ' | ')) + else: + cli.notice(nick, var.break_long_message(output, ' | ')) @cmd("fgame", admin_only=True, raw_nick=True, join=True)