3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

opercmds: make 'jupe' admin only

(cherry picked from commit a2c5b11194)
This commit is contained in:
James Lu 2016-07-24 16:40:23 -07:00
parent a28405c9ff
commit 3ba59f7c54

View File

@ -52,10 +52,10 @@ def checkban(irc, source, args):
def jupe(irc, source, args):
"""<server> [<reason>]
Oper-only, jupes the given server."""
Admin only, jupes the given server."""
# Check that the caller is either opered or logged in as admin.
irc.checkAuthenticated(source)
irc.checkAuthenticated(source, allowOper=False)
try:
servername = args[0]