mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-16 09:34:21 +01:00
Goonchat Twemoji support.
Add twemoji support to goonchat. It only parses annotations if the message has a <span> tag with the 'emoji_enabled' class. Also adds utf-8 support with goonchat, for the twemoji.
This commit is contained in:
@@ -149,8 +149,11 @@
|
||||
adminhelp(reply) //sender has left, adminhelp instead
|
||||
return
|
||||
|
||||
// for emoji, we have to define a specific span for jquery to look for
|
||||
msg = "<span class='emoji_enabled'>[msg]</span>"
|
||||
|
||||
recieve_message = "<span class='[recieve_span]'>[type] from-<b>[recieve_pm_type][key_name(src, C, C.holder ? 1 : 0, type)]</b>: [msg]</span>"
|
||||
to_chat(C, recieve_message)
|
||||
to_chat(C, recieve_message) //we also have to pass the allowEmoji flag
|
||||
to_chat(src, "<font color='blue'>[send_pm_type][type] to-<b>[key_name(C, src, holder ? 1 : 0, type)]</b>: [msg]</font>")
|
||||
|
||||
/*if(holder && !C.holder)
|
||||
|
||||
Reference in New Issue
Block a user