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.
This commit is contained in:
nyuszika7h 2015-02-26 15:10:58 +01:00
parent c0fe71bfda
commit d9a0fa3b6f

View File

@ -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):