Browse Source

Remove unnecessary public visibility

nosoop 2 years ago
parent
commit
0c8eaa12d9
1 changed files with 8 additions and 2 deletions
  1. 8 2
      scripting/simple-chatprocessor.sp

+ 8 - 2
scripting/simple-chatprocessor.sp

@@ -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;
 }