mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
opercmds: actually make 'checkban' oper-only
This commit is contained in:
parent
7dda8ebe58
commit
ae2eefc73e
@ -9,7 +9,7 @@ def checkban(irc, source, args):
|
||||
"""<banmask (nick!user@host or user@host)> [<nick or hostmask to check>]
|
||||
|
||||
Oper only. If a nick or hostmask is given, return whether the given banmask will match it. Otherwise, returns a list of connected users that would be affected by such a ban, up to 50 results."""
|
||||
irc.checkAuthenticated(source, allowOper=False)
|
||||
irc.checkAuthenticated(source)
|
||||
|
||||
try:
|
||||
banmask = args[0]
|
||||
|
Loading…
Reference in New Issue
Block a user