mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-11 20:52:42 +01:00
automode: more explicit check for the modebot UID being available
This commit is contained in:
parent
ba53d63d37
commit
de7533a46e
@ -205,7 +205,7 @@ def match(irc, channel, uid):
|
||||
irc.name, modes, outgoing_modes, irc.protoname)
|
||||
|
||||
# If the Automode bot is missing, send the mode through the PyLink server.
|
||||
if not modebot_uid:
|
||||
if modebot_uid not in irc.users:
|
||||
modebot_uid = irc.sid
|
||||
|
||||
irc.proto.mode(modebot_uid, channel, outgoing_modes)
|
||||
|
Loading…
Reference in New Issue
Block a user