Fixes сука блять (#7671)

* fix unicode stuff

* fucking hell this is what I get for copypasting from TG

* fucking hell this is what I get for forgetting to save before commiting
This commit is contained in:
monster860
2020-01-20 00:02:44 -05:00
committed by GitHub
parent 46408f4b68
commit 34444062fd
16 changed files with 43 additions and 22 deletions

View File

@@ -5,6 +5,7 @@
set hidden = 1
if(!check_rights(0))
return
msg = to_utf8(msg, src)
msg = emoji_parse(copytext(sanitize(msg), 1, MAX_MESSAGE_LEN))
if(!msg)
@@ -20,4 +21,5 @@
/client/proc/get_admin_say()
var/msg = input(src, null, "asay \"text\"") as text|null
msg = to_utf8(msg, src)
cmd_admin_say(msg)

View File

@@ -14,6 +14,7 @@
if (handle_spam_prevention(msg,MUTE_DEADCHAT))
return
msg = to_utf8(msg, src)
msg = copytext(sanitize(msg), 1, MAX_MESSAGE_LEN)
mob.log_talk(msg, LOG_DSAY)
@@ -38,5 +39,6 @@
// yogs start - Cancel button
var/msg = input(src, null, "dsay \"text\"") as text|null
if(msg)
msg = to_utf8(msg, src)
dsay(msg)
// yogs end

View File

@@ -34,6 +34,7 @@
if(!msg)
message_admins("[key_name_admin(src)] decided not to answer [ADMIN_LOOKUPFLW(M)]'s prayer")
return
msg = to_utf8(msg, src)
if(usr)
if (usr.client)
if(usr.client.holder)
@@ -74,6 +75,7 @@
if(!input)
message_admins("[key_name_admin(src)] decided not to answer [key_name_admin(H)]'s [sender] request.")
return
input = to_utf8(input, src)
log_directed_talk(mob, H, input, LOG_ADMIN, "reply")
message_admins("[key_name_admin(src)] replied to [key_name_admin(H)]'s [sender] message with: \"[input]\"")
@@ -138,6 +140,7 @@
if (!msg)
return
msg = to_utf8(msg, src)
to_chat(world, "[msg]")
log_admin("GlobalNarrate: [key_name(usr)] : [msg]")
message_admins("<span class='adminnotice'>[key_name_admin(usr)] Sent a global narrate</span>")
@@ -160,6 +163,8 @@
if( !msg )
return
msg = to_utf8(msg, src)
to_chat(M, msg)
log_admin("DirectNarrate: [key_name(usr)] to ([M.name]/[M.key]): [msg]")
@@ -182,6 +187,7 @@
var/msg = input("Message:", text("Enter the text you wish to appear to everyone within view:")) as text|null
if (!msg)
return
msg = to_utf8(msg, src)
for(var/mob/M in view(range,A))
to_chat(M, msg)