From 2e122f3635b13137225c24756a69542f0e4e3556 Mon Sep 17 00:00:00 2001 From: SabreML <57483089+SabreML@users.noreply.github.com> Date: Thu, 7 Jan 2021 11:16:06 +0000 Subject: [PATCH] Fixes Mentor asay (#15246) * Mentor asay fix * msay too Thanks to AA for actually having a brain --- code/modules/admin/verbs/adminsay.dm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/verbs/adminsay.dm b/code/modules/admin/verbs/adminsay.dm index 4e2f81df6b2..fa06794131e 100644 --- a/code/modules/admin/verbs/adminsay.dm +++ b/code/modules/admin/verbs/adminsay.dm @@ -26,8 +26,12 @@ SSblackbox.record_feedback("tally", "admin_verb", 1, "Asay") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! /client/proc/get_admin_say() - var/msg = input(src, null, "asay \"text\"") as text|null - cmd_admin_say(msg) + if(check_rights(R_ADMIN)) + var/msg = input(src, null, "asay \"text\"") as text|null + cmd_admin_say(msg) + else if(check_rights(R_MENTOR)) + var/msg = input(src, null, "msay \"text\"") as text|null + cmd_mentor_say(msg) /client/proc/cmd_mentor_say(msg as text) set category = "Admin"