$Log$
+Revision 1.389 1999/10/20 16:07:48 ajc
+* Wholist fixes for users who are in chat mode
+
Revision 1.388 1999/10/20 03:42:29 ajc
* In the wholist, only show <private room> if the user viewing the list
doesn't know that room. Otherwise show the name.
Fri Jul 10 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Initial CVS import
+
* Save a message pointer into a specified room
* (Returns 0 for success, nonzero for failure)
*/
-int CtdlSaveMsgPointerInRoom(char *roomname, long msgid) {
+int CtdlSaveMsgPointerInRoom(char *roomname, long msgid, int flags) {
int i;
struct quickroom qrbuf;
struct cdbdata *cdbfr;
long *msglist;
long highest_msg = 0L;
- lprintf(9, "CtdlSaveMsgPointerInRoom(%s, %ld)\n", roomname, msgid);
+ lprintf(9, "CtdlSaveMsgPointerInRoom(%s, %ld, %d)\n",
+ roomname, msgid, flags);
if (lgetroom(&qrbuf, roomname) != 0) {
lprintf(9, "No such room <%s>\n", roomname);
-
-
-
-
/*
* Save a message to disk
*/
if (strlen(force_room) > 0) {
strcpy(actual_rm, force_room);
}
- CtdlSaveMsgPointerInRoom(actual_rm, newmsgid);
+ CtdlSaveMsgPointerInRoom(actual_rm, newmsgid, 0);
}
/* Bump this user's messages posted counter. */
if ((strlen(recipient) > 0) && (mailtype == MES_LOCAL)) {
if (getuser(&userbuf, recipient) == 0) {
MailboxName(actual_rm, &userbuf, MAILROOM);
- CtdlSaveMsgPointerInRoom(actual_rm, newmsgid);
+ CtdlSaveMsgPointerInRoom(actual_rm, newmsgid, 0);
}
}
if (foundit) {
/* put the message into the target room */
- if (err = CtdlSaveMsgPointerInRoom(targ, num), (err !=0) ) {
+ if (err = CtdlSaveMsgPointerInRoom(targ, num, 0), (err !=0) ) {
cprintf("%d Could not save message %ld in %s.\n",
err, num, targ);
}