Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-04-16 17:10:00 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2025-04-16 17:10:00 +1000
commitc59fceecf93895c7bd2b2bf9fe327dd79e9d0c51 (patch)
treec69342595e560116a03a35a35f1b0b2fa219f72f /source/frontend
parent7d1beb6ed8d125286ffa61e909f6389ae648e128 (diff)
add optional data for chat messages, for custom Chat panes to read from
Diffstat (limited to 'source/frontend')
-rw-r--r--source/frontend/StarInterfaceLuaBindings.cpp4
1 files changed, 2 insertions, 2 deletions
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<Chat>(mainInterface->paneManager()->registeredPane(MainInterfacePanes::Chat).get());
- callbacks.registerCallback("send", [chat, client](String const& message, Maybe<String> modeName, Maybe<bool> speak) {
+ callbacks.registerCallback("send", [chat, client](String const& message, Maybe<String> modeName, Maybe<bool> speak, Maybe<JsonObject> 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: