]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
be more robust
authorRudolf Polzer <divVerent@xonotic.org>
Tue, 4 Oct 2011 13:39:36 +0000 (15:39 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 4 Oct 2011 13:39:36 +0000 (15:39 +0200)
qcsrc/menu/xonotic/serverlist.c

index 8bd3fb1adf3532c3826c85032795c1bbeab06992..f02d747cc91f1f0e229c56074c217dc2609e2c5e 100644 (file)
@@ -288,7 +288,8 @@ void XonoticServerList_refreshServerList(entity me, float mode)
                // server banning
                n = tokenizebyseparator(_Nex_ExtResponseSystem_BannedServers, " ");
                for(i = 0; i < n; ++i)
-                       sethostcachemaskstring(++m, SLIST_FIELD_CNAME, argv(i), SLIST_TEST_NOTSTARTSWITH);
+                       if(argv(i) != "")
+                               sethostcachemaskstring(++m, SLIST_FIELD_CNAME, argv(i), SLIST_TEST_NOTSTARTSWITH);
 
                m = SLIST_MASK_OR - 1;
                if(s != "")