mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-28 13:42:37 +01:00
opercmds: make 'jupe' admin only
(cherry picked from commit a2c5b11194
)
This commit is contained in:
parent
a28405c9ff
commit
3ba59f7c54
@ -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