mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 07:22:28 +00:00
Shitty decode listserv
This commit is contained in:
parent
90302330ed
commit
5edcc72839
1 changed files with 11 additions and 4 deletions
|
@ -472,6 +472,7 @@ HMS_list_servers (void)
|
||||||
{
|
{
|
||||||
struct HMS_buffer *hms;
|
struct HMS_buffer *hms;
|
||||||
|
|
||||||
|
char *list;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
hms = HMS_connect("servers");
|
hms = HMS_connect("servers");
|
||||||
|
@ -481,11 +482,17 @@ HMS_list_servers (void)
|
||||||
|
|
||||||
if (HMS_do(hms))
|
if (HMS_do(hms))
|
||||||
{
|
{
|
||||||
p = &hms->buffer[strlen(hms->buffer)];
|
list = curl_easy_unescape(hms->curl, hms->buffer, 0, NULL);
|
||||||
while (*--p == '\n')
|
|
||||||
;
|
|
||||||
|
|
||||||
CONS_Printf("%s\n", hms->buffer);
|
p = strtok(list, "\n");
|
||||||
|
|
||||||
|
while (p != NULL)
|
||||||
|
{
|
||||||
|
CONS_Printf("\x80%s\n", p);
|
||||||
|
p = strtok(NULL, "\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
curl_free(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
HMS_end(hms);
|
HMS_end(hms);
|
||||||
|
|
Loading…
Reference in a new issue