3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-23 18:54:05 +01:00

Automode: limit 'list' permissions on all channels to opers

This commit is contained in:
James Lu 2016-09-12 11:26:31 -07:00
parent 1eb48c63e5
commit eaa09d68ce
2 changed files with 2 additions and 4 deletions

View File

@ -27,8 +27,6 @@ permissions:
# channels.
- automode.manage.relay_owned
- automode.sync.relay_owned
"*!*@*":
# Everyone can use /msg Automode list on any channel.
- automode.list
"$pylinkacc":
# Those with an admin login in PyLink can do anything.

View File

@ -25,8 +25,8 @@ exportdb_timer = None
save_delay = conf.conf['bot'].get('save_delay', 300)
# The default set of Automode permissions.
default_permissions = {"$ircop": ['automode.manage.relay_owned', 'automode.sync.relay_owned'],
"*!*@*": ['automode.list']}
default_permissions = {"$ircop": ['automode.manage.relay_owned', 'automode.sync.relay_owned',
'automode.list']}
def loadDB():
"""Loads the Automode database, silently creating a new one if this fails."""