Re: [X2serv-cvs] CVS: x2/source chan.c,1.72,1.73 send.c,1.23,1.24
Brought to you by:
sirvulcan
From: Alex <ru...@bl...> - 2001-03-19 03:26:00
|
uhm. strcmp returns 0 when the items are identical, and non-zero when they are different. I believe you just broke it? -Rubin On Sun, 18 Mar 2001, Mike Hayman wrote: > Update of /cvsroot/x2serv/x2/source > In directory usw-pr-cvs1:/tmp/cvs-serv27834 > > Modified Files: > chan.c send.c > Log Message: > Fixed the topics so topic unset, "\*", would not be set as the topic. > > Index: chan.c > =================================================================== > RCS file: /cvsroot/x2serv/x2/source/chan.c,v > retrieving revision 1.72 > retrieving revision 1.73 > diff -C2 -r1.72 -r1.73 > *** chan.c 2001/02/28 08:35:38 1.72 > --- chan.c 2001/03/19 03:24:57 1.73 > *************** > *** 39,45 **** > while (ChanPtr) > { > ! if ((ChanPtr->Regged && !ChanPtr->Suspended && ChanPtr->settings[INCHAN] == 1) && ChanPtr->settings[TOPICFREQ] == period && strcmp(ChanPtr->Topic, "*")) > { > ! send_topic(ChanPtr, ChanPtr->Topic); > } > ChanPtr = ChanPtr->Next; > --- 39,46 ---- > while (ChanPtr) > { > ! if ((ChanPtr->Regged && !ChanPtr->Suspended && ChanPtr->settings[INCHAN] == 1) && ChanPtr->settings[TOPICFREQ] == period) > { > ! if(!strcmp(ChanPtr->Topic, "*")) > ! send_topic(ChanPtr, ChanPtr->Topic); > } > ChanPtr = ChanPtr->Next; > > Index: send.c > =================================================================== > RCS file: /cvsroot/x2serv/x2/source/send.c,v > retrieving revision 1.23 > retrieving revision 1.24 > diff -C2 -r1.23 -r1.24 > *** send.c 2001/01/17 04:00:21 1.23 > --- send.c 2001/03/19 03:24:57 1.24 > *************** > *** 458,462 **** > if(TempChanPtr->settings[INCHAN]) > { > ! if (strcmp(TempChanPtr->Topic, "*") && (TempChanPtr->settings[TOPICFREQ] > 0)) > sendtosock(Sock, ":%s TOPIC %s :%s", IrcNick, > TempChanPtr->Name, TempChanPtr->Topic); > --- 458,462 ---- > if(TempChanPtr->settings[INCHAN]) > { > ! if (!strcmp(TempChanPtr->Topic, "*") && (TempChanPtr->settings[TOPICFREQ] > 0)) > sendtosock(Sock, ":%s TOPIC %s :%s", IrcNick, > TempChanPtr->Name, TempChanPtr->Topic); > *************** > *** 530,534 **** > while (TempChanPtr) > { > ! if(TempChanPtr->settings[TOPICFREQ] && strcmp(TempChanPtr->Topic, "*")) > sendtosock(Sock, ":%s TOPIC %s :%s", IrcNick, TempChanPtr->Name, TempChanPtr->Topic); > > --- 530,534 ---- > while (TempChanPtr) > { > ! if(TempChanPtr->settings[TOPICFREQ] && !strcmp(TempChanPtr->Topic, "*")) > sendtosock(Sock, ":%s TOPIC %s :%s", IrcNick, TempChanPtr->Name, TempChanPtr->Topic); > > > > _______________________________________________ > X2serv-cvs mailing list > X2s...@li... > http://lists.sourceforge.net/lists/listinfo/x2serv-cvs > |