mirror of
https://github.com/gophernicus/gophernicus.git
synced 2024-09-01 04:14:15 -04:00
Tabs->spaces borked userlist on most clients
This commit is contained in:
parent
4587014a86
commit
c1c7ffe721
10
src/menu.c
10
src/menu.c
@ -156,13 +156,13 @@ void userlist(state *st)
|
|||||||
ltime = localtime(&users[i].mtime);
|
ltime = localtime(&users[i].mtime);
|
||||||
strftime(timestr, sizeof(timestr), DATE_FORMAT, ltime);
|
strftime(timestr, sizeof(timestr), DATE_FORMAT, ltime);
|
||||||
|
|
||||||
printf("1%-*.*s %s - \t/~%s/\t%s\t%i" CRLF,
|
printf("1%-*.*s %s - \t/~%s/\t%s\t%i" CRLF,
|
||||||
width, width, buf, timestr, users[i].user,
|
width, width, buf, timestr, users[i].user,
|
||||||
st->server_host, st->server_port);
|
st->server_host, st->server_port);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
printf("1%.*s\t/~%s/\t%s\t%i" CRLF, st->out_width, users[i].user,
|
printf("1%.*s\t/~%s/\t%s\t%i" CRLF, st->out_width, buf,
|
||||||
pwd->pw_name, st->server_host_default, st->server_port);
|
users[i].user, st->server_host_default, st->server_port);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user