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:
parent
c0fe71bfda
commit
d9a0fa3b6f
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user