Skip to content

Commit

Permalink
mentors can now unmark mhelps
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonespace27 committed Oct 20, 2023
1 parent 651a937 commit 78adde4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions code/modules/mentor/mentorhelp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,7 @@
if(sender == author)
message_title = "MentorHelp"
// If there's a mentor, let them mark it. If not, let them unmark it
if(mentor)
message_sender_options = " (<a href='?src=\ref[src];action=unmark'>Unmark</a>"
else
message_sender_options = " (<a href='?src=\ref[src];action=mark'>Mark</a>"
message_sender_options = " (<a href='?src=\ref[src];action=mark'>Mark/Unmark</a>"
message_sender_options += " | <a href='?src=\ref[src];action=close'>Close</a> | <a href='?src=\ref[src];action=autorespond'>AutoResponse</a>)"

var/message_header = SPAN_MENTORHELP("<span class='prefix'>[message_title] from [message_sender_key]:</span> <span class='message'>[message_sender_options]</span><br>")
Expand Down Expand Up @@ -274,9 +271,10 @@
if("autorespond")
autoresponse(C)
if("mark")
mark(C)
if("unmark")
unmark(C)
if(!mentor)
mark(C)
else
unmark(C)
if("close")
if(C == author || C == mentor || CLIENT_IS_STAFF(C))
close(C)
Expand Down

0 comments on commit 78adde4

Please sign in to comment.