mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-29 06:02:38 +01:00
plugins/commands.py: change over to permissions API
This commit is contained in:
parent
9199186309
commit
b0296933a1
@ -134,7 +134,7 @@ def loglevel(irc, source, args):
|
||||
|
||||
Sets the log level to the given <level>. <level> must be either DEBUG, INFO, WARNING, ERROR, or CRITICAL.
|
||||
If no log level is given, shows the current one."""
|
||||
irc.checkAuthenticated(source, allowOper=False)
|
||||
permissions.checkPermissions(irc, source, ['commands.loglevel'])
|
||||
try:
|
||||
level = args[0].upper()
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user