From 5e3309c2168010ee78808ffbb6c930323097dc07 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 21 Nov 2024 18:35:50 +0100 Subject: [PATCH] serverjoin hook --- src/d_clisrv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 40c8899fa..168cb64d8 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -4302,8 +4302,8 @@ static void Got_AddPlayer(UINT8 **p, INT32 playernum) LUA_HookInt(newplayernum, HOOK(PlayerJoin)); - //if (newplayernum == consoleplayer) - //LUA_ServerJoin(); + if (newplayernum == consoleplayer) + LUA_HookInt(newplayernum, HOOK(ServerJoin)); #ifdef HAVE_DISCORDRPC DRPC_UpdatePresence();