3
0
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:
James Lu 2016-07-07 22:57:31 -07:00
parent ba53d63d37
commit de7533a46e

View File

@ -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)