Makes game setup failures send messages to admin irc and ingame admin chat for debug purposes (#7451)

This commit is contained in:
deathride58
2018-10-21 03:34:58 -04:00
committed by kevinz000
parent d49f096be9
commit a71cd5a87b

View File

@@ -250,6 +250,8 @@ SUBSYSTEM_DEF(ticker)
if(!GLOB.Debug2)
if(!can_continue)
log_game("[mode.name] failed pre_setup, cause: [mode.setup_error]")
send2irc("SSticker", "[mode.name] failed pre_setup, cause: [mode.setup_error]")
message_admins("<span class='notice'>[mode.name] failed pre_setup, cause: [mode.setup_error]</span>")
QDEL_NULL(mode)
to_chat(world, "<B>Error setting up [GLOB.master_mode].</B> Reverting to pre-game lobby.")
SSjob.ResetOccupations()