Adds the ability to get some info about an inputted ckey or name from irc using the existing keyword_lookup proc.

Also adds a config option to show the names of admins messaging from irc and that they are from irc.
This commit is contained in:
Shadowlight213
2016-08-18 18:01:06 -07:00
parent ffb8e9d8d5
commit 1215e02bee
5 changed files with 25 additions and 3 deletions
+2 -1
View File
@@ -190,6 +190,7 @@
var/client/C = directory[target]
var/static/stealthkey
var/adminname = config.showircname ? "[sender](IRC)" : "Administrator"
if(!C)
return "No client"
@@ -206,7 +207,7 @@
msg = emoji_parse(msg)
C << "<font color='red' size='4'><b>-- Administrator private message --</b></font>"
C << "<font color='red'>Admin PM from-<b><a href='?priv_msg=[stealthkey]'>Administrator</A></b>: [msg]</font>"
C << "<font color='red'>Admin PM from-<b><a href='?priv_msg=[stealthkey]'>[adminname]</A></b>: [msg]</font>"
C << "<font color='red'><i>Click on the administrator's name to reply.</i></font>"
//always play non-admin recipients the adminhelp sound