From 2b3a4c396a497cd5bfec4a826dc11a1d4adcd851 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 9 Aug 2020 11:50:32 +0200 Subject: [PATCH] Added server messages to the server log --- shared/js/ui/frames/log/DispatcherLog.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/shared/js/ui/frames/log/DispatcherLog.tsx b/shared/js/ui/frames/log/DispatcherLog.tsx index aa310f08..00309c07 100644 --- a/shared/js/ui/frames/log/DispatcherLog.tsx +++ b/shared/js/ui/frames/log/DispatcherLog.tsx @@ -6,6 +6,7 @@ import {formatDate} from "tc-shared/MessageFormatter"; import {BBCodeRenderer} from "tc-shared/text/bbcode"; import {format_time} from "tc-shared/ui/frames/chat"; import {CommandResult} from "tc-shared/connection/ServerConnectionDeclaration"; +import {XBBCodeRenderer} from "vendor/xbbcode/react"; const cssStyle = require("./DispatcherLog.scss"); const cssStyleRenderer = require("./Renderer.scss"); @@ -472,7 +473,12 @@ registerDispatcher(EventType.CLIENT_NICKNAME_CHANGE_FAILED,(data) => ( )); -registerDispatcher(EventType.GLOBAL_MESSAGE, () => undefined); +registerDispatcher(EventType.GLOBAL_MESSAGE, (data, handlerId) => <> + + + {data.message} + +); registerDispatcher(EventType.DISCONNECTED,() => (