3
0
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:
James Lu 2015-08-05 06:10:55 -07:00
parent 4d55c8ce73
commit 411b6c4702

View File

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