From: Samual Lenks <samual@xonotic.org>
Date: Sat, 9 Feb 2013 02:59:10 +0000 (-0500)
Subject: Check only for sends to non-clients, don't error for bots
X-Git-Tag: xonotic-v0.7.0~62^2~23^2~246
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5c2bcad90bf05adf7934c2faa50a10c1e3b2186b;p=xonotic%2Fxonotic-data.pk3dir.git

Check only for sends to non-clients, don't error for bots
---

diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc
index 06ac9c1019..c96f1a4b73 100644
--- a/qcsrc/common/notifications.qc
+++ b/qcsrc/common/notifications.qc
@@ -315,7 +315,7 @@ string Send_Notification_CheckTarget(float broadcast, entity client)
 		case NOTIF_ONE:
 		case NOTIF_ONE_ONLY:
 		{
-			if(clienttype(client) != CLIENTTYPE_REAL) { return "No real client provided!"; }
+			if(clienttype(client) == CLIENTTYPE_NOTACLIENT) { return "No client provided!"; }
 			else { return ""; }
 		}
 		
@@ -323,14 +323,14 @@ string Send_Notification_CheckTarget(float broadcast, entity client)
 		case NOTIF_TEAM_EXCEPT:
 		{
 			if not(teamplay) { return "Teamplay not active!"; }
-			else if(clienttype(client) == CLIENTTYPE_NOTACLIENT) { return "No real client provided!"; }
-			else if((broadcast == NOTIF_TEAM_EXCEPT) && (clienttype(client) != CLIENTTYPE_REAL)) { return "Exception can't be a non-real client!"; }
+			else if(clienttype(client) == CLIENTTYPE_NOTACLIENT) { return "No client provided!"; }
+			else if((broadcast == NOTIF_TEAM_EXCEPT) && (clienttype(client) == CLIENTTYPE_NOTACLIENT)) { return "Exception can't be a non-client!"; }
 			else { return ""; }
 		}
 		
 		case NOTIF_ANY_EXCEPT:
 		{
-			if(clienttype(client) != CLIENTTYPE_REAL) { return "Exception can't be a non-real client!"; }
+			if(clienttype(client) == CLIENTTYPE_NOTACLIENT) { return "Exception can't be a non-client!"; }
 			else { return ""; }
 		}