Make !fghost usable by admins

This commit is contained in:
nyuszika7h 2014-07-19 19:26:41 +02:00
parent 0df8098ade
commit d353ab5ff3

View File

@ -3122,16 +3122,19 @@ def _faftergame(cli, nick, chan, rest):
def faftergame(cli, nick, rest):
_faftergame(cli, nick, botconfig.CHANNEL, rest)
@pmcmd("fghost", owner_only=True)
@cmd("fghost", owner_only=True)
def fghost(cli, nick, *rest):
cli.msg(botconfig.CHANNEL, nick + " is the ghost!")
cli.mode(botconfig.CHANNEL, "+v", nick)
@pmcmd("funghost", owner_only=True)
@cmd("funghost", owner_only=True)
@cmd('fghost', admin_only=True)
@pmcmd('fghost', admin_only=True)
def fghost(cli, nick, *rest):
cli.msg(botconfig.CHANNEL, '{} is the ghost!'.format(nick))
cli.mode(botconfig.CHANNEL, '+v', nick)
@cmd('funghost', admin_only=True)
@pmcmd('funghost', admin_only=True)
def funghost(cli, nick, *rest):
cli.mode(botconfig.CHANNEL, "-v", nick)
cli.mode(botconfig.CHANNEL, '-v', nick)
@pmcmd("flastgame", admin_only=True, raw_nick=True)
def flastgame(cli, nick, rest):