fallow, fdeny: Add temporary warning about persistence

Or rather, the lack of it.
This commit is contained in:
nyuszika7h 2014-11-03 14:25:26 +01:00
parent 06ae51d29f
commit bb6e3e9dfe

View File

@ -5217,8 +5217,19 @@ def deny(cli, nick, chan, rest):
@cmd("fallow", admin_only=True)
def fallow(cli, nick, chan, rest):
"""Allow someone to use an admin command."""
allow(cli, nick, chan, rest)
# TODO: Remove this after code to save this to the database has been
# implemented.
msg = ("\u0002Warning:\u0002 This change has not been saved to the "
"database. It will be lost after a restart.")
if chan == nick:
pm(cli, nick, msg)
else:
cli.notice(nick, msg)
@pmcmd("fallow", admin_only=True)
def fallow_pm(cli, nick, rest):
@ -5230,6 +5241,16 @@ def fdeny(cli, nick, chan, rest):
"""Deny someone from using a command."""
deny(cli, nick, chan, rest)
# TODO: Remove this after code to save this to the database has been
# implemented.
msg = ("\u0002Warning:\u0002 This change has not been saved to the "
"database. It will be lost after a restart.")
if chan == nick:
pm(cli, nick, msg)
else:
cli.notice(nick, msg)
@pmcmd("fdeny", admin_only=True)
def fdeny_pm(cli, nick, rest):