Adds a "Ping all admins" command. (#19918)

* ping all admins

* optional deadmin ping

* aa feedback

* fixes this at AA request

* Update code/modules/admin/verbs/ping_all_admins.dm

Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>

* Update code/modules/admin/admin_verbs.dm

* Apply suggestions from code review

Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
S34N
2023-01-11 10:59:22 -06:00
committed by GitHub
co-authored by Sirryan2002
parent ba1fa9fb63
commit a1959e799c
12 changed files with 69 additions and 15 deletions
+11 -5
View File
@@ -68,7 +68,8 @@ GLOBAL_LIST_INIT(admin_verbs_admin, list(
/client/proc/list_ssds_afks,
/client/proc/ccbdb_lookup_ckey,
/client/proc/view_instances,
/client/proc/start_vote
/client/proc/start_vote,
/client/proc/ping_all_admins
))
GLOBAL_LIST_INIT(admin_verbs_ban, list(
/client/proc/ban_panel,
@@ -632,14 +633,17 @@ GLOBAL_LIST_INIT(admin_verbs_maintainer, list(
set name = "De-admin self"
set category = "Admin"
if(!check_rights(R_ADMIN|R_MOD|R_MENTOR))
if(!check_rights(R_ADMIN|R_MENTOR))
return
log_admin("[key_name(usr)] deadmined themself.")
message_admins("[key_name_admin(usr)] deadmined themself.")
if(check_rights(R_ADMIN, FALSE))
GLOB.de_admins += ckey
else
GLOB.de_mentors += ckey
deadmin()
verbs += /client/proc/readmin
GLOB.deadmins += ckey
to_chat(src, "<span class='interface'>You are now a normal player.</span>")
SSblackbox.record_feedback("tally", "admin_verb", 1, "De-admin") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -731,13 +735,15 @@ GLOBAL_LIST_INIT(admin_verbs_maintainer, list(
D.associate(C)
message_admins("[key_name_admin(usr)] re-adminned themselves.")
log_admin("[key_name(usr)] re-adminned themselves.")
GLOB.deadmins -= ckey
GLOB.de_admins -= ckey
GLOB.de_mentors -= ckey
SSblackbox.record_feedback("tally", "admin_verb", 1, "Re-admin")
return
else
to_chat(src, "You are already an admin.")
verbs -= /client/proc/readmin
GLOB.deadmins -= ckey
GLOB.de_admins -= ckey
GLOB.de_mentors -= ckey
return
/client/proc/toggle_log_hrefs()