From d9a0fa3b6f985e10df6fd8bce55e89fcaddb0952 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Thu, 26 Feb 2015 15:10:58 +0100 Subject: [PATCH] pm: Use repr() for printing fake nick PMs This is handy if you are looking for control codes (e.g. bold) which would otherwise be ignored by the terminal, as they use different control codes, and they don't know what to do with \x02 and such. It's also consistent with the way actually-sent messages are printed. --- modules/wolfgame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 94bd2ea..522882c 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -290,7 +290,7 @@ def mass_mode(cli, md_param, md_plain): def pm(cli, target, message): # message either privmsg or notice, depending on user settings if is_fake_nick(target) and botconfig.DEBUG_MODE: - debuglog("Would message fake nick {0}: {1}".format(target, message)) + debuglog("Would message fake nick {0}: {1!r}".format(target, message)) return if is_user_notice(target):