mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-25 01:40:38 +01:00
relay: don't forward simple bans as text to clientbot links if modesync is on
Closes #528.
This commit is contained in:
parent
a60e6e7f22
commit
6cbb6617ef
@ -1542,6 +1542,10 @@ def handle_mode(irc, numeric, command, args):
|
|||||||
|
|
||||||
# Convert UIDs to nicks when relaying this to clientbot.
|
# Convert UIDs to nicks when relaying this to clientbot.
|
||||||
modepair = (modepair[0], irc.get_friendly_name(modepair[1]))
|
modepair = (modepair[0], irc.get_friendly_name(modepair[1]))
|
||||||
|
elif modepair[0][-1] in irc.cmodes['*A'] and irc.is_hostmask(modepair[1]) and \
|
||||||
|
conf.conf.get('relay', {}).get('clientbot_modesync', 'none').lower() != 'none':
|
||||||
|
# Don't show bans if the ban is a simple n!u@h and modesync is enabled
|
||||||
|
continue
|
||||||
friendly_modes.append(modepair)
|
friendly_modes.append(modepair)
|
||||||
|
|
||||||
if friendly_modes:
|
if friendly_modes:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user