Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv10187/src
Modified Files:
mod-memoserv.c
Log Message:
show correct message counts when users log in
Index: mod-memoserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/mod-memoserv.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** mod-memoserv.c 9 Sep 2003 16:40:29 -0000 1.7
--- mod-memoserv.c 20 Oct 2003 16:44:25 -0000 1.8
***************
*** 73,77 ****
#define MSMSG_EXPIRY "Messages will be expired when they are %s old (%d seconds)."
#define MSMSG_MESSAGES_EXPIRED "$b%lu$b message(s) expired."
! #define MSMSG_MEMOS_INBOX "You have $b%d$b new message(s) in your inbox (%d old). Use /msg $S LIST to list them."
#define MSMSG_NEW_MESSAGE "You have a new message from $b%s$b."
#define MSMSG_DELETED_ALL "Deleted all of your messages."
--- 73,77 ----
#define MSMSG_EXPIRY "Messages will be expired when they are %s old (%d seconds)."
#define MSMSG_MESSAGES_EXPIRED "$b%lu$b message(s) expired."
! #define MSMSG_MEMOS_INBOX "You have $b%d$b new message(s) in your inbox and %d old messages. Use /msg $S LIST to list them."
#define MSMSG_NEW_MESSAGE "You have a new message from $b%s$b."
#define MSMSG_DELETED_ALL "Deleted all of your messages."
***************
*** 543,548 ****
unseen++;
}
! if (ii && memoserv_conf.bot)
! send_message(user, memoserv_conf.bot, MSMSG_MEMOS_INBOX, unseen, ii);
}
--- 543,548 ----
unseen++;
}
! if (ma->recvd.used && memoserv_conf.bot)
! send_message(user, memoserv_conf.bot, MSMSG_MEMOS_INBOX, unseen, ma->recvd.used - unseen);
}
|