mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
automode: only those with admin login can change access entries
This commit is contained in:
parent
4999ecd11f
commit
db3517b43a
@ -85,7 +85,7 @@ def setacc(irc, source, args):
|
||||
SET #channel $oper:Network?Administrator qo
|
||||
SET #staffchan $channel:#mainchan:op o
|
||||
"""
|
||||
irc.checkAuthenticated(source)
|
||||
irc.checkAuthenticated(source, allowOper=False)
|
||||
try:
|
||||
channel, mask, modes = args
|
||||
except ValueError:
|
||||
@ -117,7 +117,7 @@ def delacc(irc, source, args):
|
||||
|
||||
Removes the Automode entry for the given mask on the given channel, if one exists.
|
||||
"""
|
||||
irc.checkAuthenticated(source)
|
||||
irc.checkAuthenticated(source, allowOper=False)
|
||||
|
||||
try:
|
||||
channel, mask = args
|
||||
|
Loading…
Reference in New Issue
Block a user