From 30c1980b59bd5261a9486be99caf5fa343778303 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 9 May 2018 23:33:00 -0700 Subject: [PATCH] relay: consistently use bold instead of repr in LINKACL output --- plugins/relay.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/relay.py b/plugins/relay.py index 2cc3244..955d8e0 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -2479,7 +2479,7 @@ def linkacl(irc, source, args): setting = args[2].lower() if setting in ('y', 'yes', 'true', '1', 'on'): entry['use_whitelist'] = True - irc.reply('Done. Whitelist mode \x02enabled\x02 on \x02%r\x02.' % channel) + irc.reply('Done. Whitelist mode \x02enabled\x02 on \x02%s\x02.' % channel) return elif setting in ('n', 'np', 'false', '0', 'off'): entry['use_whitelist'] = False @@ -2504,7 +2504,7 @@ def linkacl(irc, source, args): try: db[relay]['allowed_nets'].remove(remotenet) except KeyError: - irc.error('Network %r is not on the whitelist for %r.' % (remotenet, channel)) + irc.error('Network \x02%s\x02 is not on the whitelist for \x02%s\x02.' % (remotenet, channel)) return else: # In blacklist mode, DENY *adds* to the blacklist @@ -2522,7 +2522,7 @@ def linkacl(irc, source, args): try: db[relay]['blocked_nets'].remove(remotenet) except KeyError: - irc.error('Network %r is not on the blacklist for %r.' % (remotenet, channel)) + irc.error('Network \x02%s\x02 is not on the blacklist for \x02%s\x02.' % (remotenet, channel)) return irc.reply('Done.') else: