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:
parent
a905f74800
commit
a2c5b11194
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user