* fix GTSN not to cut seen stats at 1024 chars
authorWilfried Göesgens <willi@citadel.org>
Sat, 28 Aug 2010 13:11:01 +0000 (13:11 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sat, 28 Aug 2010 13:11:01 +0000 (13:11 +0000)
citadel/user_ops.c

index 042f211f541b003fb22936d5946e4f0f0cf9c27e..ed726858709fa66fe4aeb7e61c27dd99bbe210b2 100644 (file)
@@ -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"));
 }