projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63262a6
)
* fix GTSN not to cut seen stats at 1024 chars
author
Wilfried Göesgens
<willi@citadel.org>
Sat, 28 Aug 2010 13:11:01 +0000
(13:11 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Sat, 28 Aug 2010 13:11:01 +0000
(13:11 +0000)
citadel/user_ops.c
patch
|
blob
|
history
diff --git
a/citadel/user_ops.c
b/citadel/user_ops.c
index 042f211f541b003fb22936d5946e4f0f0cf9c27e..ed726858709fa66fe4aeb7e61c27dd99bbe210b2 100644
(file)
--- 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"));
}