mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
automode: don't send empty mode lines if no users match the ACL
This commit is contained in:
parent
0eb605219b
commit
f4c51cde00
@ -106,6 +106,7 @@ def match(irc, channel, uids=None):
|
||||
log.debug("(%s) automode: Filtered mode list of %s to %s (protocol:%s)",
|
||||
irc.name, modes, outgoing_modes, irc.protoname)
|
||||
|
||||
if outgoing_modes:
|
||||
# If the Automode bot is missing, send the mode through the PyLink server.
|
||||
if modebot_uid not in irc.users:
|
||||
modebot_uid = irc.sid
|
||||
|
Loading…
Reference in New Issue
Block a user