]> jfr.im git - erebus.git/blobdiff - modules/control.py
control - show ignored status in whois
[erebus.git] / modules / control.py
index 4d5dbccd20b28b79b9eacc76495647acc507f6dc..27d3798f37ca74304a95b0ed7ecfd154da8d2581 100644 (file)
@@ -91,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)"