3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 11:42:51 +01:00

opercmds: make 'jupe' admin only

This commit is contained in:
James Lu 2016-07-24 16:40:23 -07:00
parent a905f74800
commit a2c5b11194

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]