Various and sundry admin messages

This commit is contained in:
Arokha Sieyes
2018-01-06 16:49:56 -05:00
parent cd3a332fd2
commit b9e8b9641c
5 changed files with 27 additions and 2 deletions

View File

@@ -1227,6 +1227,15 @@
if((R_ADMIN|R_MOD|R_EVENT) & X.holder.rights)
to_chat(X, take_msg)
to_chat(M, "<span class='notice'><b>Your adminhelp is being attended to by [usr.client]. Thanks for your patience!</b></span>")
// VoreStation Edit Start
if (config.chat_webhook_url)
spawn(0)
var/query_string = "type=admintake"
query_string += "&key=[url_encode(config.chat_webhook_key)]"
query_string += "&admin=[url_encode(key_name(usr.client))]"
query_string += "&user=[url_encode(key_name(M))]"
world.Export("[config.chat_webhook_url]?[query_string]")
// VoreStation Edit End
else
to_chat(usr, "<span class='warning'>Unable to locate mob.</span>")