mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 04:02:45 +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.
|
||||
|
||||
Saves the relay database to disk."""
|
||||
if irc.users[source].identified:
|
||||
if utils.isOper(irc, source):
|
||||
exportDB()
|
||||
utils.msg(irc, source, 'Done.')
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user