!fjoin checks if the bot is opped before joining the list of players
prevents mass spam ...
This commit is contained in:
parent
9c36602e21
commit
1e420a0235
@ -1227,6 +1227,10 @@ def fjoin(cli, nick, chan, rest):
|
|||||||
"""Forces someone to join a game."""
|
"""Forces someone to join a game."""
|
||||||
noticed = False
|
noticed = False
|
||||||
fake = False
|
fake = False
|
||||||
|
if not var.OPPED:
|
||||||
|
cli.notice(who, "Sorry, I'm not opped in {0}.".format(chan))
|
||||||
|
cli.msg("ChanServ", "op " + botconfig.CHANNEL)
|
||||||
|
return
|
||||||
if not rest.strip():
|
if not rest.strip():
|
||||||
join_player(cli, nick, chan, forced=True)
|
join_player(cli, nick, chan, forced=True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user