Small fix so voting isn't always shouting at you for not being an admin or mod.

This commit is contained in:
DJSnapshot
2013-10-26 22:49:16 -07:00
parent 4d06af2038
commit aeff49f742

View File

@@ -48,6 +48,7 @@ datum/controller/vote
proc/autotransfer() proc/autotransfer()
initiate_vote("crew_transfer","the server") initiate_vote("crew_transfer","the server")
log_debug("The server has called an Autotransfer")
proc/reset() proc/reset()
@@ -206,14 +207,16 @@ datum/controller/vote
return 0 return 0
choices.Add(config.votable_modes) choices.Add(config.votable_modes)
if("crew_transfer") if("crew_transfer")
if(check_rights(R_ADMIN) || check_rights(R_MOD)) if(check_rights(R_ADMIN|R_MOD, 0))
question = "End the shift?" question = "End the shift?"
choices.Add("Initiate Crew Transfer", "Continue The Round") choices.Add("Initiate Crew Transfer", "Continue The Round")
else else
if (get_security_level() == "red" || get_security_level() == "delta") if (get_security_level() == "red" || get_security_level() == "delta")
initiator_key << "The current alert status is too high to call for a crew transfer!"
return 0 return 0
if(ticker.current_state <= 2) if(ticker.current_state <= 2)
return 0 return 0
initiator_key << "The crew transfer button has been disabled!"
question = "End the shift?" question = "End the shift?"
choices.Add("Initiate Crew Transfer", "Continue The Round") choices.Add("Initiate Crew Transfer", "Continue The Round")
if("custom") if("custom")