mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-26 04:04:22 +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)
|
irc.name, modes, outgoing_modes, irc.protoname)
|
||||||
|
|
||||||
# If the Automode bot is missing, send the mode through the PyLink server.
|
# 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
|
modebot_uid = irc.sid
|
||||||
|
|
||||||
irc.proto.mode(modebot_uid, channel, outgoing_modes)
|
irc.proto.mode(modebot_uid, channel, outgoing_modes)
|
||||||
|
Loading…
Reference in New Issue
Block a user