Less calls to copytext()

This commit is contained in:
mwerezak
2015-01-14 23:03:21 -05:00
parent c0a896282c
commit dc23588a81
+3 -4
View File
@@ -23,10 +23,9 @@
var/message_mode = parse_message_mode(message, "headset")
if(copytext(message,1,2) == "*")
return emote(copytext(message,2))
else if(copytext(message,1,2) == "^")
return custom_emote(1, copytext(message,2))
switch(copytext(message,1,2))
if("*") return emote(copytext(message,2))
if("^") return custom_emote(1, copytext(message,2))
if(name != GetVoice())
alt_name = "(as [get_id_name("Unknown")])"