allow gstats and pstats in pm during games

This commit is contained in:
jacob1 2014-12-11 19:29:04 -05:00
parent 970e55e828
commit 60cd1ee06c

View File

@ -6523,10 +6523,9 @@ def game_stats(cli, nick, chan, rest):
if chan != nick: if chan != nick:
var.LAST_GSTATS = datetime.now() var.LAST_GSTATS = datetime.now()
if var.PHASE not in ('none', 'join'):
if var.PHASE not in ('none', 'join'): cli.notice(nick, "Wait until the game is over to view stats.")
cli.notice(nick, "Wait until the game is over to view stats.") return
return
gamemode = var.CURRENT_GAMEMODE gamemode = var.CURRENT_GAMEMODE
rest = rest.strip().split() rest = rest.strip().split()
@ -6575,10 +6574,9 @@ def player_stats(cli, nick, chan, rest):
if chan != nick: if chan != nick:
var.LAST_PSTATS = datetime.now() var.LAST_PSTATS = datetime.now()
if var.PHASE not in ('none', 'join'):
if var.PHASE not in ('none', 'join'): cli.notice(nick, 'Wait until the game is over to view stats.')
cli.notice(nick, 'Wait until the game is over to view stats.') return
return
params = rest.split() params = rest.split()