mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-05 01:19:32 +01:00
relay: consistently use bold instead of repr in LINKACL output
This commit is contained in:
parent
0ae4aea133
commit
30c1980b59
@ -2479,7 +2479,7 @@ def linkacl(irc, source, args):
|
|||||||
setting = args[2].lower()
|
setting = args[2].lower()
|
||||||
if setting in ('y', 'yes', 'true', '1', 'on'):
|
if setting in ('y', 'yes', 'true', '1', 'on'):
|
||||||
entry['use_whitelist'] = True
|
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
|
return
|
||||||
elif setting in ('n', 'np', 'false', '0', 'off'):
|
elif setting in ('n', 'np', 'false', '0', 'off'):
|
||||||
entry['use_whitelist'] = False
|
entry['use_whitelist'] = False
|
||||||
@ -2504,7 +2504,7 @@ def linkacl(irc, source, args):
|
|||||||
try:
|
try:
|
||||||
db[relay]['allowed_nets'].remove(remotenet)
|
db[relay]['allowed_nets'].remove(remotenet)
|
||||||
except KeyError:
|
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
|
return
|
||||||
else:
|
else:
|
||||||
# In blacklist mode, DENY *adds* to the blacklist
|
# In blacklist mode, DENY *adds* to the blacklist
|
||||||
@ -2522,7 +2522,7 @@ def linkacl(irc, source, args):
|
|||||||
try:
|
try:
|
||||||
db[relay]['blocked_nets'].remove(remotenet)
|
db[relay]['blocked_nets'].remove(remotenet)
|
||||||
except KeyError:
|
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
|
return
|
||||||
irc.reply('Done.')
|
irc.reply('Done.')
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user