3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +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.
Saves the relay database to disk."""
if irc.users[source].identified:
if utils.isOper(irc, source):
exportDB()
utils.msg(irc, source, 'Done.')
else: