]> jfr.im git - erebus.git/blobdiff - modlib.py
trivia - minor updates
[erebus.git] / modlib.py
index 9082326e243478756f614047b396415d8a340d6d..9f59573eb6a9e7e20d4f83f4a5c2426c666edad2 100644 (file)
--- a/modlib.py
+++ b/modlib.py
@@ -20,6 +20,7 @@ class modlib(object):
        STAFF   =  50
        AUTHED  =   0
        ANYONE  =  -1
+       IGNORED =  -2
 
        # (channel) access levels
        COWNER  =   5
@@ -28,6 +29,7 @@ class modlib(object):
        VOICE   =   2
        KNOWN   =   1
        PUBLIC  =   0 #anyone (use glevel to control auth-needed)
+       BANNED  =  -1
 
        # messages
        WRONGARGS = "Wrong number of arguments."
@@ -66,12 +68,12 @@ class modlib(object):
                return True
        def modstop(self, parent):
                for cmd, func in self.hooks.iteritems():
-                       self.parent.unhook(cmd, func)
-                       self.parent.unhook("%s.%s" % (self.name, cmd), func)
+                       parent.unhook(cmd, func)
+                       parent.unhook("%s.%s" % (self.name, cmd), func)
                for num, func in self.numhooks.iteritems():
-                       self.parent.unhooknum(num, func)
+                       parent.unhooknum(num, func)
                for chan, func in self.chanhooks.iteritems():
-                       self.parent.unhookchan(chan, func)
+                       parent.unhookchan(chan, func)
 
                for func, args, kwargs in self.helps:
                        try: