]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Check only for sends to non-clients, don't error for bots
authorSamual Lenks <samual@xonotic.org>
Sat, 9 Feb 2013 02:59:10 +0000 (21:59 -0500)
committerSamual Lenks <samual@xonotic.org>
Sat, 9 Feb 2013 02:59:10 +0000 (21:59 -0500)
qcsrc/common/notifications.qc

index 06ac9c10197e77b0ddcf61f8b91025714372d52e..c96f1a4b73a1be85452de8764129efecad7b233f 100644 (file)
@@ -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 ""; }
                }