Make !fghost usable by admins
This commit is contained in:
parent
0df8098ade
commit
d353ab5ff3
@ -3122,16 +3122,19 @@ def _faftergame(cli, nick, chan, rest):
|
|||||||
def faftergame(cli, nick, rest):
|
def faftergame(cli, nick, rest):
|
||||||
_faftergame(cli, nick, botconfig.CHANNEL, 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('fghost', admin_only=True)
|
||||||
@cmd("funghost", owner_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):
|
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)
|
@pmcmd("flastgame", admin_only=True, raw_nick=True)
|
||||||
def flastgame(cli, nick, rest):
|
def flastgame(cli, nick, rest):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user