Browse Source

Remove PostThink hook and sdkhooks requirement

nosoop 2 years ago
parent
commit
2857441a23
1 changed files with 1 additions and 7 deletions
  1. 1 7
      scripting/simple-chatprocessor.sp

+ 1 - 7
scripting/simple-chatprocessor.sp

@@ -8,12 +8,11 @@
 #pragma semicolon 1
 #include <sourcemod>
 
-#include <sdkhooks>
 #include <sdktools_voice>
 
 #pragma newdecls required
 
-#define PLUGIN_VERSION "0.2.0"
+#define PLUGIN_VERSION "0.2.1"
 public Plugin myinfo = {
 	name = "[CSRD] Simple Chat Processor",
 	author = "nosoop (based off of Simple Plugins' implementation)",
@@ -69,7 +68,6 @@ public void OnPluginStart() {
 
 public void OnClientPutInServer(int client) {
 	g_QueuedMessages[client] = new StringMap();
-	SDKHook(client, SDKHook_PostThink, OnClientThinkPost);
 }
 
 public void OnClientDisconnect(int client) {
@@ -156,10 +154,6 @@ void OnPlayerSayPost(Event event, const char[] name, bool dontBroadcast) {
 	FlushQueuedMessages(client);
 }
 
-void OnClientThinkPost(int client) {
-	FlushQueuedMessages(client);
-}
-
 void FlushQueuedMessages(int author) {
 	/**
 	 * Iterate through all queued messages from OnSayText2