Fix some commands not working in alt channels

This commit is contained in:
Vgr E.Barry 2015-06-04 19:37:12 -04:00
parent 562fba2029
commit 9dc52441e8

View File

@ -6420,7 +6420,7 @@ def reset_game(cli, nick, chan, rest):
@cmd("rules", pm=True) @cmd("rules", pm=True)
def show_rules(cli, nick, chan, rest): def show_rules(cli, nick, chan, rest):
"""Displays the rules.""" """Displays the rules."""
if (var.PHASE in ("day", "night") and nick not in var.list_players()) or nick == chan: if (var.PHASE in ("day", "night") and nick not in var.list_players()) and chan != botconfig.CHANNEL:
cli.notice(nick, var.RULES) cli.notice(nick, var.RULES)
return return
cli.msg(chan, var.RULES) cli.msg(chan, var.RULES)
@ -6613,7 +6613,7 @@ def show_admins(cli, nick, chan, rest):
def coin(cli, nick, chan, rest): def coin(cli, nick, chan, rest):
"""It's a bad idea to base any decisions on this command.""" """It's a bad idea to base any decisions on this command."""
if var.PHASE in ("day", "night") and nick not in var.list_players(): if var.PHASE in ("day", "night") and nick not in var.list_players() and chan == botconfig.CHANNEL:
cli.notice(nick, "You may not use this command right now.") cli.notice(nick, "You may not use this command right now.")
return return
@ -6631,7 +6631,7 @@ def coin(cli, nick, chan, rest):
def pony(cli, nick, chan, rest): def pony(cli, nick, chan, rest):
"""For entertaining bronies.""" """For entertaining bronies."""
if var.PHASE in ("day", "night") and nick not in var.list_players(): if var.PHASE in ("day", "night") and nick not in var.list_players() and chan == botconfig.CHANNEL:
cli.notice(nick, "You may not use this command right now.") cli.notice(nick, "You may not use this command right now.")
return return