Fix lack of feedback when users try to reach admins (#22783)

* Players can now see afk mins

It's important that players know ahead of time that their ahelps are not
reaching someone who is currently active

* Add feedback for the player when adminhelping about how many admins saw
their message
This commit is contained in:
oranges
2017-01-12 09:36:46 +01:00
committed by AnturK
parent de454f5a35
commit e5b224fb96
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -126,6 +126,8 @@
//send it to irc if nobody is on and tell us how many were on
var/admin_number_present = send2irc_adminless_only(ckey,original_msg)
log_admin("HELP: [key_name(src)]: [original_msg] - heard by [admin_number_present] non-AFK admins who have +BAN.")
if(admin_number_present <= 0)
src << "<span class='notice'>No active admins are online, your adminhelp was sent to the admin irc.</span>"
feedback_add_details("admin_verb","AH") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
return
@@ -184,4 +186,4 @@
msg += "(AFK)"
msg += ", "
return msg
return msg
+2
View File
@@ -80,6 +80,8 @@
msg += "\n"
else
for(var/client/C in admins)
if(C.is_afk())
continue //Don't show afk admins to adminwho
if(!C.holder.fakekey)
msg += "\t[C] is a [C.holder.rank]\n"
msg += "<span class='info'>Adminhelps are also sent to IRC. If no admins are available in game adminhelp anyways and an admin on IRC will see it and respond.</span>"