mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 09:19:23 +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):
|
def jupe(irc, source, args):
|
||||||
"""<server> [<reason>]
|
"""<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.
|
# Check that the caller is either opered or logged in as admin.
|
||||||
irc.checkAuthenticated(source)
|
irc.checkAuthenticated(source, allowOper=False)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
servername = args[0]
|
servername = args[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user