mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 09:19:23 +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 #channel $oper:Network?Administrator qo
|
||||||
SET #staffchan $channel:#mainchan:op o
|
SET #staffchan $channel:#mainchan:op o
|
||||||
"""
|
"""
|
||||||
irc.checkAuthenticated(source)
|
irc.checkAuthenticated(source, allowOper=False)
|
||||||
try:
|
try:
|
||||||
channel, mask, modes = args
|
channel, mask, modes = args
|
||||||
except ValueError:
|
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.
|
Removes the Automode entry for the given mask on the given channel, if one exists.
|
||||||
"""
|
"""
|
||||||
irc.checkAuthenticated(source)
|
irc.checkAuthenticated(source, allowOper=False)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
channel, mask = args
|
channel, mask = args
|
||||||
|
Loading…
Reference in New Issue
Block a user