Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 4bdec9a

Browse files
committed
Mentor fixes
1 parent 69e6845 commit 4bdec9a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

yogstation/code/modules/mentor/mentor_verbs.dm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ GLOBAL_PROTECT(mentor_verbs)
6464

6565
if(C.is_afk())
6666
msg += " (AFK)"
67-
else
68-
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.")
6967
msg += "\n"
68+
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.")
7069

7170
to_chat(src, msg, confidential=TRUE)
7271

yogstation/code/modules/mentor/mentorpm.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090

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

0 commit comments

Comments
 (0)