Use separate warning for /quit than for /part

This commit is contained in:
nyuszika7h 2016-07-26 22:32:35 +02:00
parent dc1b1e7f6a
commit 73f99b4ae4
2 changed files with 2 additions and 1 deletions

View File

@ -842,6 +842,7 @@
"leave_warning": "Leaving during game. If you think you may have to leave shortly after a game would start, !leave during the join phase instead.",
"idle_warning": "Idling out during game. If you !join please pay attention to the channel and ensure that your client notifies you when highlighted.",
"part_warning": "Parting during game. You only have a short time to re-join the channel after parting to stay alive.",
"quit_warning": "Quitting IRC during game. You only have a short time to re-join the channel after quitting to stay alive.",
"acc_warning": "Changing accounts during game. Please do not change accounts while playing.",
"_": " vim: set sw=4 expandtab:"

View File

@ -3393,7 +3393,7 @@ def reaper(cli, gameid):
else:
cli.msg(chan, messages["quit_death_no_reveal"].format(dcedplayer))
if var.PHASE != "join":
add_warning(dcedplayer, var.PART_PENALTY, botconfig.NICK, messages["part_warning"], expires=var.PART_EXPIRY)
add_warning(dcedplayer, var.PART_PENALTY, botconfig.NICK, messages["quit_warning"], expires=var.PART_EXPIRY)
if not del_player(cli, dcedplayer, devoice = False, death_triggers = False):
return
elif what == "part" and (datetime.now() - timeofdc) > timedelta(seconds=var.PART_GRACE_TIME):