projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3978e74
)
remove extra noise from user list
author
Art Cancro
<ajc@citadel.org>
Wed, 14 Jun 2023 15:48:54 +0000
(06:48 -0900)
committer
Art Cancro
<ajc@citadel.org>
Wed, 14 Jun 2023 15:48:54 +0000
(06:48 -0900)
textclient/citadel.c
patch
|
blob
|
history
diff --git
a/textclient/citadel.c
b/textclient/citadel.c
index c5133b40038d16743ce85c667ffe45df2b95b2b0..d8f19efdb8469e5a284700bfbc9e49c8d147c2a6 100644
(file)
--- a/
textclient/citadel.c
+++ b/
textclient/citadel.c
@@
-144,7
+144,7
@@
void formout(CtdlIPC * ipc, char *name) {
void userlist(CtdlIPC * ipc, char *patn) {
char buf[SIZ];
void userlist(CtdlIPC * ipc, char *patn) {
char buf[SIZ];
- char fl[
26
]; // a buffer this small will prevent it overrunning the column
+ char fl[
64
]; // a buffer this small will prevent it overrunning the column
struct tm tmbuf;
time_t lc;
int r; // IPC response code
struct tm tmbuf;
time_t lc;
int r; // IPC response code
@@
-156,8
+156,8
@@
void userlist(CtdlIPC * ipc, char *patn) {
return;
}
return;
}
- scr_printf("
User Name Num L Last Visit Logins Messages
\n");
- scr_printf("-------------------------
----- - ---------- ------
--------\n");
+ scr_printf("
User Name Last Visit
\n");
+ scr_printf("-------------------------
--------------------------------------- --
--------\n");
if (listing != NULL)
while (!IsEmptyStr(listing)) {
extract_token(buf, listing, 0, '\n', sizeof buf);
if (listing != NULL)
while (!IsEmptyStr(listing)) {
extract_token(buf, listing, 0, '\n', sizeof buf);
@@
-166,12
+166,10
@@
void userlist(CtdlIPC * ipc, char *patn) {
if (sigcaught == 0) {
extract_token(fl, buf, 0, '|', sizeof fl);
if (pattern(fl, patn) >= 0) {
if (sigcaught == 0) {
extract_token(fl, buf, 0, '|', sizeof fl);
if (pattern(fl, patn) >= 0) {
- scr_printf("%-25s ", fl);
- scr_printf("%5ld %d ", extract_long(buf, 2), extract_int(buf, 1));
+ scr_printf("%-64s ", fl);
lc = extract_long(buf, 3);
localtime_r(&lc, &tmbuf);
lc = extract_long(buf, 3);
localtime_r(&lc, &tmbuf);
- scr_printf("%02d/%02d/%04d ", (tmbuf.tm_mon + 1), tmbuf.tm_mday, (tmbuf.tm_year + 1900));
- scr_printf("%6ld %8ld\n", extract_long(buf, 4), extract_long(buf, 5));
+ scr_printf("%02d/%02d/%04d\n", (tmbuf.tm_mon + 1), tmbuf.tm_mday, (tmbuf.tm_year + 1900));
}
}
}
}