]> jfr.im git - erebus.git/blobdiff - bot.py
help: refactor logic around _genhelp
[erebus.git] / bot.py
diff --git a/bot.py b/bot.py
index 2feb2532125179d2e3fc89ba6565be0d29fadd65..f17eae33a95bd5da0d17a60cc8687991a78ecd45 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -98,7 +98,7 @@ class Bot(object):
        def _gotping(self, pieces):
                self.conn.send("PONG %s" % (pieces[1]))
                self._checknick()
-       def _goterror(self, pieces): #TODO handle more gracefully
+       def _goterror(self, pieces):
                curs = self.parent.db.cursor()
                curs.execute("UPDATE bots SET connected = 0")
                curs.close()
@@ -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: