]> jfr.im git - erebus.git/commitdiff
bot - ignore parsemsg if user is IGNORED
authorzonidjan <redacted>
Sat, 9 Sep 2017 01:31:30 +0000 (20:31 -0500)
committerzonidjan <redacted>
Sat, 9 Sep 2017 01:31:30 +0000 (20:31 -0500)
bot.py

diff --git a/bot.py b/bot.py
index 2feb2532125179d2e3fc89ba6565be0d29fadd65..6324ecb1754e8aff9968011f291af038b56694bf 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -238,6 +238,7 @@ class Bot(object):
 
 
        def parsemsg(self, user, target, msg):
+               if user.glevel <= -2: return # short circuit if user is IGNORED
                chan = None
                chanparam = None # was the channel specified as part of the command?
                if len(msg) == 0: