From 5c2bcad90bf05adf7934c2faa50a10c1e3b2186b Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Fri, 8 Feb 2013 21:59:10 -0500 Subject: [PATCH] Check only for sends to non-clients, don't error for bots --- qcsrc/common/notifications.qc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcsrc/common/notifications.qc b/qcsrc/common/notifications.qc index 06ac9c101..c96f1a4b7 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 ""; } } -- 2.39.2