X-Git-Url: https://jfr.im/git/erebus.git/blobdiff_plain/6de27fd45ab8ed23503aab4249fac2e2638e7c3e..0d93d7b47b642e1c5705b3c75fb7f5cfcbe0fe41:/bot.py diff --git a/bot.py b/bot.py index 2feb253..f17eae3 100644 --- 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: