|
@@ -91,7 +91,13 @@ public void OnClientDisconnect(int client) {
|
|
|
delete g_QueuedMessages[client];
|
|
|
}
|
|
|
|
|
|
-public Action OnSayText2(UserMsg id, Handle buffer, const int[] clients, int nClients,
|
|
|
+/**
|
|
|
+ * Collects previously fired UTIL_SayText2Filter events and holds them in our own internal
|
|
|
+ * buffer to be manipulated at a later time. Each usermessage is fired separately.
|
|
|
+ *
|
|
|
+ * This is handled by game/server/client.cpp::Host_Say
|
|
|
+ */
|
|
|
+Action OnSayText2(UserMsg id, Handle buffer, const int[] clients, int nClients,
|
|
|
bool reliable, bool init) {
|
|
|
BfRead bitbuf = view_as<BfRead>(buffer);
|
|
|
|
|
@@ -239,7 +245,7 @@ void ForwardOnChatMessagePost(int author, ArrayList clientList, const char[] nam
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-public int Native_GetMessageFlags(Handle hPlugin, int argc) {
|
|
|
+int Native_GetMessageFlags(Handle hPlugin, int argc) {
|
|
|
return g_ChatFlags;
|
|
|
}
|
|
|
|