mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 20:12:50 +02:00
Nobody likes extra line breaks]
This commit is contained in:
@@ -867,7 +867,7 @@ void login_ui(pixel *vid_buf)
|
|||||||
if (res && !strncmp(res, "OK ", 3))
|
if (res && !strncmp(res, "OK ", 3))
|
||||||
{
|
{
|
||||||
char *s_id,*u_e,*nres;
|
char *s_id,*u_e,*nres;
|
||||||
printf("\n{%s}\n", res);
|
printf("{%s}\n", res);
|
||||||
s_id = strchr(res+3, ' ');
|
s_id = strchr(res+3, ' ');
|
||||||
if (!s_id)
|
if (!s_id)
|
||||||
goto fail;
|
goto fail;
|
||||||
@@ -885,7 +885,7 @@ void login_ui(pixel *vid_buf)
|
|||||||
strcpy(svf_session_id, s_id);
|
strcpy(svf_session_id, s_id);
|
||||||
nres = mystrdup(u_e);
|
nres = mystrdup(u_e);
|
||||||
|
|
||||||
printf("\n{%s} {%s} {%s}\n", svf_user_id, svf_session_id, nres);
|
printf("{%s} {%s} {%s}\n", svf_user_id, svf_session_id, nres);
|
||||||
|
|
||||||
if (!strncmp(nres, "ADMIN", 5))
|
if (!strncmp(nres, "ADMIN", 5))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user