mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-28 13:42:37 +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.
|
||||
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)
|
||||
|
||||
if friendly_modes:
|
||||
|
Loading…
Reference in New Issue
Block a user