From f6ed7198cfbfad0cab38c3d92a7acf75f1bc2325 Mon Sep 17 00:00:00 2001
From: BotoX <github@botox.bz>
Date: Thu, 10 Oct 2019 15:07:51 +0200
Subject: [PATCH] SelfMute: Don't ignore fake clients (source tv / torchlight)

---
 SelfMute/scripting/SelfMute.sp | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/SelfMute/scripting/SelfMute.sp b/SelfMute/scripting/SelfMute.sp
index 11d6c0b1..8034bf1e 100644
--- a/SelfMute/scripting/SelfMute.sp
+++ b/SelfMute/scripting/SelfMute.sp
@@ -147,7 +147,7 @@ public void OnClientDisconnect(int client)
 		SetIgnored(i, client, false);
 		SetExempt(i, client, false);
 
-		if(IsClientInGame(i) && !IsFakeClient(i) && i != client)
+		if(IsClientInGame(i) && i != client)
 			SetListenOverride(i, client, Listen_Yes);
 	}
 
@@ -158,7 +158,7 @@ public void Event_Round(Handle event, const char[] name, bool dontBroadcast)
 {
 	for(int i = 1; i <= MaxClients; i++)
 	{
-		if(IsClientInGame(i) && !IsFakeClient(i))
+		if(IsClientInGame(i))
 			UpdateSpecialMutesThisClient(i);
 	}
 }
@@ -190,7 +190,7 @@ void UpdateSpecialMutesOtherClients(int client)
 
 	for(int i = 1; i <= MaxClients; i++)
 	{
-		if(i == client || !IsClientInGame(i) || IsFakeClient(i))
+		if(i == client || !IsClientInGame(i))
 			continue;
 
 		int Flags = MUTE_NONE;
@@ -233,7 +233,7 @@ void UpdateSpecialMutesThisClient(int client)
 {
 	for(int i = 1; i <= MaxClients; i++)
 	{
-		if(i == client || !IsClientInGame(i) || IsFakeClient(i))
+		if(i == client || !IsClientInGame(i))
 			continue;
 
 		bool Alive = IsPlayerAlive(i);
@@ -394,7 +394,7 @@ bool UnMuteSpecial(int client, char[] Argument)
 			{
 				for(int i = 1; i <= MaxClients; i++)
 				{
-					if(IsClientInGame(i) && !IsFakeClient(i))
+					if(IsClientInGame(i))
 						UnIgnore(client, i);
 
 					PrintToChat(client, "\x04[Self-Mute]\x01 You have self-unmuted:\x04 all players");
@@ -681,7 +681,7 @@ void DisplayMuteMenu(int client)
 		int CurrentlyTalking = 0;
 		for(int i = 1; i <= MaxClients; i++)
 		{
-			if(i != client && IsClientInGame(i) && !IsFakeClient(i) && _IsClientSpeaking(i))
+			if(i != client && IsClientInGame(i) && _IsClientSpeaking(i))
 				aClients[CurrentlyTalking++] = i;
 		}
 
@@ -724,7 +724,7 @@ void DisplayMuteMenu(int client)
 	int Players = 0;
 	for(int i = 1; i <= MaxClients; i++)
 	{
-		if(i != client && IsClientInGame(i) && !IsFakeClient(i))
+		if(i != client && IsClientInGame(i))
 			aClients[Players++] = i;
 	}
 
@@ -938,7 +938,7 @@ void DisplayUnMuteMenu(int client)
 	int Players = 0;
 	for(int i = 1; i <= MaxClients; i++)
 	{
-		if(i != client && IsClientInGame(i) && !IsFakeClient(i) && (GetIgnored(client, i) || GetExempt(client, i)))
+		if(i != client && IsClientInGame(i) && (GetIgnored(client, i) || GetExempt(client, i)))
 			aClients[Players++] = i;
 	}