diff options
author | Tim Angus <tim@ngus.net> | 2006-12-03 23:01:59 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2006-12-03 23:01:59 +0000 |
commit | 6b892b39592bc3fdf7e94616917f39ec071d390d (patch) | |
tree | 6da91cb1747f98967296fbeaec88e68f242a857a /src/ui | |
parent | 344618181104012d609532848c5b1b0529247fa2 (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.c | 12 |
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 : |