projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
93dc254
)
* 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 Goesgens
<dothebart@citadel.org>
Wed, 1 Sep 2010 22:25:28 +0000
(
00:25
+0200)
(cherry picked from commit
e766e2c6d4bfa8ebce17ca3039963a3761fd3e8f
)
citadel/user_ops.c
patch
|
blob
|
history
diff --git
a/citadel/user_ops.c
b/citadel/user_ops.c
index fa0d2a56e0fdfa0c036f2a447b933e6871fc13e8..46bbc10363df3408d71e21f8c48b9123b88f5e6c 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) {
void cmd_gtsn(char *argbuf) {
-
char buf[SIZ]
;
+
visit vbuf
;
if (CtdlAccessCheck(ac_logged_in)) {
return;
}
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"));
}
}