]> jfr.im git - erebus.git/blobdiff - modules/control.py
control - show ignored status in whois
[erebus.git] / modules / control.py
index b4dbfbf98fce3d3330c787fdb57aaaab377bc461..27d3798f37ca74304a95b0ed7ecfd154da8d2581 100644 (file)
@@ -31,7 +31,6 @@ def die(bot, user, chan, realtarget, *args):
        for botitem in bot.parent.bots.values():
                bot.conn.send("QUIT :Restarting. %s" % (quitmsg))
        sys.exit(0)
-       os._exit(0)
 
 @lib.hook(needchan=False, glevel=lib.MANAGER)
 @lib.help("<mod>", "loads a module")
@@ -92,10 +91,12 @@ def _whois(user, chan, showglevel=True, showclevel=True):
        fmt = "%(auth)s"
 
        if showglevel and user.glevel >= 1:
-                       fillers['glevel'] = user.glevel
-                       fmt += " (global access: %(glevel)s)"
+               fillers['glevel'] = user.glevel
+               fmt += " (global access: %(glevel)s)"
        elif user.glevel >= 1:
                fmt += " (staff)"
+       elif user.glevel <= -2:
+               fmt += " (ignored)"
        else:
                fmt += " (not staff)"