3
0
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:
IotaSpencer 2016-12-10 00:53:27 -05:00 committed by James Lu
parent 9199186309
commit b0296933a1

View File

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