mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-17 14:01:03 +01:00
relay: allow opers to run SAVE too
This commit is contained in:
parent
4d55c8ce73
commit
411b6c4702
@ -104,7 +104,7 @@ def save(irc, source, args):
|
|||||||
"""takes no arguments.
|
"""takes no arguments.
|
||||||
|
|
||||||
Saves the relay database to disk."""
|
Saves the relay database to disk."""
|
||||||
if irc.users[source].identified:
|
if utils.isOper(irc, source):
|
||||||
exportDB()
|
exportDB()
|
||||||
utils.msg(irc, source, 'Done.')
|
utils.msg(irc, source, 'Done.')
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user