Skip to content

Commit 7eea08c

Browse files
authored
update(chat): Remove chat processor on Windows
1 parent 7f76fd5 commit 7eea08c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/server/chat/Chat.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ SH_DECL_EXTERN3_void(ICvar, DispatchConCommand, SH_NOATTRIB, 0, ConCommandRef, c
1616

1717
void ChatProcessor::Initialize()
1818
{
19+
#ifndef _WIN32
1920
SH_ADD_HOOK_MEMFUNC(IGameEventSystem, PostEventAbstract, g_pGameEventSystem, this, &ChatProcessor::PostEvent, false);
21+
#endif
2022
SH_ADD_HOOK_MEMFUNC(ICvar, DispatchConCommand, icvar, this, &ChatProcessor::DispatchConCommand, false);
2123
}
2224

2325
void ChatProcessor::Destroy()
2426
{
27+
#ifndef _WIN32
2528
SH_REMOVE_HOOK_MEMFUNC(IGameEventSystem, PostEventAbstract, g_pGameEventSystem, this, &ChatProcessor::PostEvent, false);
29+
#endif
2630
SH_REMOVE_HOOK_MEMFUNC(ICvar, DispatchConCommand, icvar, this, &ChatProcessor::DispatchConCommand, false);
2731
}
2832

0 commit comments

Comments
 (0)