3
0
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:
James Lu 2016-07-07 11:17:24 -07:00
parent 7dda8ebe58
commit ae2eefc73e

View File

@ -9,7 +9,7 @@ def checkban(irc, source, args):
"""<banmask (nick!user@host or user@host)> [<nick or hostmask to check>] """<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.""" 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: try:
banmask = args[0] banmask = args[0]