Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv13966/src
Modified Files:
helpserv.c
Log Message:
do not crash when we receive a privmsg from a local user
Index: helpserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/helpserv.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -r1.80 -r1.81
*** helpserv.c 9 Sep 2003 16:40:29 -0000 1.80
--- helpserv.c 10 Sep 2003 12:23:41 -0000 1.81
***************
*** 932,937 ****
const int from_opserv = 0; /* for helpserv_notice */
! /* Ignore things consisting of empty lines */
! if (!*text) return;
hs = dict_find(helpserv_bots_dict, target->nick, NULL);
--- 932,938 ----
const int from_opserv = 0; /* for helpserv_notice */
! /* Ignore things consisting of empty lines or from ourselves */
! if (!*text || IsLocal(user))
! return;
hs = dict_find(helpserv_bots_dict, target->nick, NULL);
|