From de7533a46e0c9604e2ec5a3c86548fcfd72f46bf Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 7 Jul 2016 22:57:31 -0700 Subject: [PATCH] automode: more explicit check for the modebot UID being available --- plugins/automode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/automode.py b/plugins/automode.py index cc7ab57..c5abb09 100644 --- a/plugins/automode.py +++ b/plugins/automode.py @@ -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)