From c59fceecf93895c7bd2b2bf9fe327dd79e9d0c51 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 16 Apr 2025 17:10:00 +1000 Subject: add optional data for chat messages, for custom Chat panes to read from --- source/frontend/StarInterfaceLuaBindings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/frontend') diff --git a/source/frontend/StarInterfaceLuaBindings.cpp b/source/frontend/StarInterfaceLuaBindings.cpp index cbacb59..085cc4c 100644 --- a/source/frontend/StarInterfaceLuaBindings.cpp +++ b/source/frontend/StarInterfaceLuaBindings.cpp @@ -55,9 +55,9 @@ LuaCallbacks LuaBindings::makeChatCallbacks(MainInterface* mainInterface, Univer auto chat = as(mainInterface->paneManager()->registeredPane(MainInterfacePanes::Chat).get()); - callbacks.registerCallback("send", [chat, client](String const& message, Maybe modeName, Maybe speak) { + callbacks.registerCallback("send", [chat, client](String const& message, Maybe modeName, Maybe speak, Maybe data) { auto sendMode = modeName ? ChatSendModeNames.getLeft(*modeName) : ChatSendMode::Broadcast; - client->sendChat(message, sendMode, speak); + client->sendChat(message, sendMode, speak, data); }); // just for SE compat - this shoulda been a utility callback :moyai: -- cgit v1.2.3