1
0
mirror of https://github.com/Earu/EasyChat.git synced 2025-03-04 03:13:20 -05:00

yet another typo

This commit is contained in:
Earu 2021-10-19 11:29:51 +02:00
parent f8b6706718
commit c4305ee08c

View File

@ -1547,6 +1547,7 @@ if CLIENT then
local succ, ret = xpcall(callback, function(err)
ErrorNoHalt(debug.traceback(err))
end, arg)
if succ and ret then
if is_color(ret) or isstring(ret) then
table.insert(data, ret)
@ -1695,7 +1696,7 @@ if CLIENT then
return color_white
end)
EasyChat.SetAddTextTypeHandle("TextInteraction", function(tbl)
EasyChat.SetAddTextTypeHandle("TextInteraction", function(interaction)
if isstring(interaction.text) then
EasyChat.GUI.RichText:AppendClickableText(interaction.text, interaction.on_click, interaction.on_hover)
chathud_append_text(interaction.text)