3
0
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:
James Lu 2016-07-07 21:57:36 -07:00
parent 4999ecd11f
commit db3517b43a

View File

@ -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