From a44f2cb84cd0f701f04dc85b231bd3c6e9bc9be5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sat, 28 Aug 2010 13:11:01 +0000 Subject: [PATCH] * fix GTSN not to cut seen stats at 1024 chars (cherry picked from commit e766e2c6d4bfa8ebce17ca3039963a3761fd3e8f) --- citadel/user_ops.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/citadel/user_ops.c b/citadel/user_ops.c index fa0d2a56e..46bbc1036 100644 --- a/citadel/user_ops.c +++ b/citadel/user_ops.c @@ -1506,14 +1506,18 @@ void cmd_seen(char *argbuf) { void cmd_gtsn(char *argbuf) { - char buf[SIZ]; + visit vbuf; if (CtdlAccessCheck(ac_logged_in)) { return; } - CtdlGetSeen(buf, ctdlsetseen_seen); - cprintf("%d %s\n", CIT_OK, buf); + /* Learn about the user and room in question */ + CtdlGetRelationship(&vbuf, &CC->user, &CC->room); + + cprintf("%d ", CIT_OK); + client_write(vbuf.v_seen, strlen(vbuf.v_seen)); + client_write(HKEY("\n")); } -- 2.30.2