]> jfr.im git - erebus.git/commitdiff
control - also show clevel in WHOIS if user has glevel
authorJohn Runyon <redacted>
Thu, 15 Jun 2023 04:10:10 +0000 (22:10 -0600)
committerJohn Runyon <redacted>
Thu, 15 Jun 2023 04:10:10 +0000 (22:10 -0600)
modules/control.py

index 929fc25db9739c785a32d97ecafb72d8cc7b9c7f..5afae819a543276572570fc3f3848ec158c027bd 100644 (file)
@@ -99,7 +99,7 @@ def _whois(user, chan, showglevel=True, showclevel=True):
        else:
                fmt += " (not staff)"
 
-       if showclevel and chan is not None:
+       if (showclevel or showglevel) and chan is not None:
                clev = chan.levelof(user.auth)
                if clev >= 1:
                        fillers['clevel'] = (lib.clevs[clev] if clev < len(lib.clevs) else clev)