Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SandPoot committed Dec 4, 2024
2 parents 30c937e + 31aee48 commit 51b854d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/datums/world_topic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
var/require_comms_key = FALSE

/datum/world_topic/proc/TryRun(list/input, addr)
key_valid = config && (CONFIG_GET(string/comms_key) == input["key"])
key_valid = (CONFIG_GET(string/comms_key) == input["key"]) && CONFIG_GET(string/comms_key) && input["key"]
if(require_comms_key && !key_valid)
return "Bad Key"
input -= "key"
Expand Down
2 changes: 1 addition & 1 deletion code/modules/admin/admin.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@
log_admin("[key_name(usr)] stuffed [frommob.key] into [tomob.name].")
SSblackbox.record_feedback("tally", "admin_verb", 1, "Ghost Drag Control")

tomob.ckey = frommob.ckey
tomob.key = frommob.key
qdel(frommob)

return TRUE
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/dead/observer/respawn.dm
Original file line number Diff line number Diff line change
Expand Up @@ -180,5 +180,5 @@
client.view_size.resetToDefault()

var/mob/dead/new_player/M = new /mob/dead/new_player
M.ckey = ckey
M.key = key
return M
2 changes: 1 addition & 1 deletion code/modules/mob/mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@
client.prefs.chat_toggles ^= CHAT_OOC
if (!(client.prefs.chat_toggles & CHAT_OOC) && isdead(new_mob))
client.prefs.chat_toggles ^= CHAT_OOC
new_mob.ckey = ckey
new_mob.key = key
if(send_signal)
SEND_SIGNAL(src, COMSIG_MOB_KEY_CHANGE, new_mob, src)
return TRUE
Expand Down

0 comments on commit 51b854d

Please sign in to comment.