From 735a2c6aa426df152c9ef5cb00c329546eed53e4 Mon Sep 17 00:00:00 2001 From: CirnoV Date: Fri, 28 May 2021 02:56:00 +0900 Subject: [PATCH] Use `base.Close()` when event is canceled (#55) --- client/Source-Chat-Relay.sp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/Source-Chat-Relay.sp b/client/Source-Chat-Relay.sp index 1b32029..d020674 100644 --- a/client/Source-Chat-Relay.sp +++ b/client/Source-Chat-Relay.sp @@ -551,7 +551,10 @@ public void HandlePackets(const char[] sBuffer, int iSize) Call_Finish(aResult); if (aResult >= Plugin_Handled) + { + base.Close(); return; + } #if defined DEBUG PrintToConsoleAll("====== Chat Message Packet ====="); @@ -587,7 +590,10 @@ public void HandlePackets(const char[] sBuffer, int iSize) Call_Finish(aResult); if (aResult >= Plugin_Handled) + { + base.Close(); return; + } if (SupportsHexColor(g_evEngine)) CPrintToChatAll("{gold}[%s]{white}: {grey}%s", sEvent, sData);