Skip to content

Commit

Permalink
TGS Test Merge (#22825)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yogbot-13 committed Dec 6, 2024
2 parents 50c3de9 + ef0102e commit 1c9b3d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions code/modules/admin/holder2.dm
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ GLOBAL_PROTECT(href_token)

if (deadmined)
activate()
if(C.mentor_datum)
C.mentor_position = C.mentor_datum.position
owner = C
ip_cache = C.address
cid_cache = C.computer_id
Expand Down
3 changes: 1 addition & 2 deletions yogstation/code/modules/mentor/mentor_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ GLOBAL_PROTECT(mentor_verbs)

if(C.is_afk())
msg += " (AFK)"
else
msg += span_info("Mentorhelps are also sent to Discord. If no mentors are available in game mentorhelp anyways and a mentor on Discord may see it and respond.")
msg += "\n"
msg += span_info("Mentorhelps are also sent to Discord. If no mentors are available in game mentorhelp anyways and a mentor on Discord may see it and respond.")

to_chat(src, msg, confidential=TRUE)

Expand Down
2 changes: 1 addition & 1 deletion yogstation/code/modules/mentor/mentorpm.dm
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@

var/datum/DBQuery/add_mhelp_query = SSdbcore.NewQuery(
"INSERT INTO `[format_table_name("mentor_interactions")]` (round_id, ckey, ckey_mentor, target_ckey, target_mentor, message) VALUES (:round, :send, :smentor, :receive, :rmentor, :msg);",
list("round" = GLOB.round_id, "send" = ckey, "smentor" = is_mentor(), "receive" = C.ckey, "rmentor" = C.is_mentor(), "msg" = msg)
list("round" = GLOB.round_id, "send" = ckey, "smentor" = is_mentor(), "receive" = discord_id ? whom : C.ckey, "rmentor" = discord_id ? TRUE : C.is_mentor(), "msg" = msg)
)
if(!add_mhelp_query.Execute())
message_admins("Failed insert mhelp into mhelp DB. Check the SQL error logs for more details.")
Expand Down

0 comments on commit 1c9b3d9

Please sign in to comment.