mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 11:38:12 +01:00
POLARIS: Readd include_name param on keyname because it's used for other things
This commit is contained in:
+12
-11
@@ -140,7 +140,7 @@
|
||||
|
||||
//more or less a logging utility
|
||||
//Always return "Something/(Something)", even if it's an error message.
|
||||
/proc/key_name(var/whom, var/include_link = null, var/highlight_special_characters = 1)
|
||||
/proc/key_name(var/whom, var/include_link = FALSE, var/include_name = TRUE, var/highlight_special_characters = TRUE)
|
||||
var/mob/M
|
||||
var/client/C
|
||||
var/key
|
||||
@@ -186,17 +186,18 @@
|
||||
else
|
||||
. += "INVALID"
|
||||
|
||||
var/name = "INVALID"
|
||||
if(M)
|
||||
if(M.real_name)
|
||||
name = M.real_name
|
||||
else if(M.name)
|
||||
name = M.name
|
||||
if(include_name)
|
||||
var/name = "INVALID"
|
||||
if(M)
|
||||
if(M.real_name)
|
||||
name = M.real_name
|
||||
else if(M.name)
|
||||
name = M.name
|
||||
|
||||
if(include_link && is_special_character(M) && highlight_special_characters)
|
||||
name = "<font color='#FFA500'>[name]</font>" //Orange
|
||||
|
||||
. += "/([name])"
|
||||
if(include_link && is_special_character(M) && highlight_special_characters)
|
||||
name = "<font color='#FFA500'>[name]</font>" //Orange
|
||||
|
||||
. += "/([name])"
|
||||
|
||||
return .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user