mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-24 03:04:05 +01:00
Automode: limit 'list' permissions on all channels to opers
This commit is contained in:
parent
1eb48c63e5
commit
eaa09d68ce
@ -27,8 +27,6 @@ permissions:
|
|||||||
# channels.
|
# channels.
|
||||||
- automode.manage.relay_owned
|
- automode.manage.relay_owned
|
||||||
- automode.sync.relay_owned
|
- automode.sync.relay_owned
|
||||||
"*!*@*":
|
|
||||||
# Everyone can use /msg Automode list on any channel.
|
|
||||||
- automode.list
|
- automode.list
|
||||||
"$pylinkacc":
|
"$pylinkacc":
|
||||||
# Those with an admin login in PyLink can do anything.
|
# Those with an admin login in PyLink can do anything.
|
||||||
|
@ -25,8 +25,8 @@ exportdb_timer = None
|
|||||||
save_delay = conf.conf['bot'].get('save_delay', 300)
|
save_delay = conf.conf['bot'].get('save_delay', 300)
|
||||||
|
|
||||||
# The default set of Automode permissions.
|
# The default set of Automode permissions.
|
||||||
default_permissions = {"$ircop": ['automode.manage.relay_owned', 'automode.sync.relay_owned'],
|
default_permissions = {"$ircop": ['automode.manage.relay_owned', 'automode.sync.relay_owned',
|
||||||
"*!*@*": ['automode.list']}
|
'automode.list']}
|
||||||
|
|
||||||
def loadDB():
|
def loadDB():
|
||||||
"""Loads the Automode database, silently creating a new one if this fails."""
|
"""Loads the Automode database, silently creating a new one if this fails."""
|
||||||
|
Loading…
Reference in New Issue
Block a user