From 75598f1a2b8cfba28f431742c4fecc70f7621b87 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Fri, 8 Feb 2013 18:11:03 -0600 Subject: [PATCH] Fix IPv6 favorites in q3_ui This does however allow favorites to contain hostnames which was explicitly not allowed before. --- code/q3_ui/ui_serverinfo.c | 4 ++-- code/q3_ui/ui_servers2.c | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/code/q3_ui/ui_serverinfo.c b/code/q3_ui/ui_serverinfo.c index 8cde1ccc..3db69415 100644 --- a/code/q3_ui/ui_serverinfo.c +++ b/code/q3_ui/ui_serverinfo.c @@ -82,8 +82,8 @@ void Favorites_Add( void ) return; } - // use first empty or non-numeric available slot - if ((adrstr[0] < '0' || adrstr[0] > '9' ) && !best) + // use first empty available slot + if (!adrstr[0] && !best) best = i+1; } diff --git a/code/q3_ui/ui_servers2.c b/code/q3_ui/ui_servers2.c index 0761a9c8..c5c4c743 100644 --- a/code/q3_ui/ui_servers2.c +++ b/code/q3_ui/ui_servers2.c @@ -784,11 +784,6 @@ void ArenaServers_LoadFavorites( void ) if (!adrstr[0]) continue; - // quick sanity check to avoid slow domain name resolving - // first character must be numeric - if (adrstr[0] < '0' || adrstr[0] > '9') - continue; - // favorite server addresses must be maintained outside refresh list // this mimics local and global netadr's stored in client // these can be fetched to fill ping list