summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2006-12-03 23:01:59 +0000
committerTim Angus <tim@ngus.net>2006-12-03 23:01:59 +0000
commit6b892b39592bc3fdf7e94616917f39ec071d390d (patch)
tree6da91cb1747f98967296fbeaec88e68f242a857a /src/ui
parent344618181104012d609532848c5b1b0529247fa2 (diff)
* Strip leading whitespace when displaying server names in the browser
* Sort by server name on alpha characters only * Refresh master server IP address cache on map change
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/ui_main.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c
index b323322e..aadad4fa 100644
--- a/src/ui/ui_main.c
+++ b/src/ui/ui_main.c
@@ -5042,10 +5042,18 @@ static const char *UI_FeederItemText(float feederID, int index, int column, qhan
netnames[atoi(Info_ValueForKey(info, "nettype"))] );
return hostname;
}
- else {
+ else
+ {
+ char *text;
+
Com_sprintf( hostname, sizeof(hostname), "%s", Info_ValueForKey(info, "hostname"));
- return hostname;
+ // Strip leading whitespace
+ text = hostname;
+ while( *text != '\0' && *text == ' ' )
+ text++;
+
+ return text;
}
}
case SORT_MAP :