[srvx-commits] CVS: services/src helpfile.c,1.63,1.64
Brought to you by:
entrope
From: Entrope <en...@us...> - 2003-09-26 15:18:05
|
Update of /cvsroot/srvx/services/src In directory sc8-pr-cvs1:/tmp/cvs-serv2312/src Modified Files: helpfile.c Log Message: do not send PRIVMSG for dead users, since they will generate NOSUCHNICKs Index: helpfile.c =================================================================== RCS file: /cvsroot/srvx/services/src/helpfile.c,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -r1.63 -r1.64 *** helpfile.c 22 Jul 2003 18:30:01 -0000 1.63 --- helpfile.c 26 Sep 2003 15:18:02 -0000 1.64 *************** *** 158,161 **** --- 158,164 ---- log_module(MAIN_LOG, LOG_ERROR, "Unable to find user with nickname %s (in vsend_message from %s).", dest, src->nick); return 0; + } else if (message_dest->dead) { + /* No point in sending to a user who is leaving. */ + return 0; } else { #ifdef WITH_PROTOCOL_P10 |