!fjoin checks if the bot is opped before joining the list of players

prevents mass spam ...
This commit is contained in:
jacob1 2015-10-03 16:25:29 -04:00
parent 9c36602e21
commit 1e420a0235

View File

@ -1227,6 +1227,10 @@ def fjoin(cli, nick, chan, rest):
"""Forces someone to join a game."""
noticed = 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():
join_player(cli, nick, chan, forced=True)