Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv30484/src
Modified Files:
opserv.c
Log Message:
Fix an apparently harmless typo and remove some unnecessary code.
Index: opserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/opserv.c,v
retrieving revision 1.292
retrieving revision 1.293
diff -C2 -r1.292 -r1.293
*** opserv.c 22 Nov 2002 04:11:24 -0000 1.292
--- opserv.c 4 Dec 2002 06:43:50 -0000 1.293
***************
*** 1803,1807 ****
if (found) return 0;
! for (found=0; found<opserv_bad_words->used; +++found) {
if (irccasestr(name, opserv_bad_words->list[found])) return 1;
}
--- 1803,1807 ----
if (found) return 0;
! for (found=0; found<opserv_bad_words->used; ++found) {
if (irccasestr(name, opserv_bad_words->list[found])) return 1;
}
***************
*** 1833,1837 ****
opserv_channel_check(struct chanNode *newchan)
{
- unsigned int nn;
char *warning;
--- 1833,1836 ----
***************
*** 1845,1863 ****
global_message(MESSAGE_RECIPIENT_OPERS, message);
}
! if ((newchan->bad_channel = opserv_bad_channel(newchan->name))) {
! if (newchan->name[0] == '#') {
! /* We can hack modes and ops and stuff, but we will cause
! * a HACK(2) if we join now (because it will send a CREATE
! * instead of a JOIN) .. so wait until the join check to
! * shut the channel down. */
! } else {
! for (nn=newchan->members.used; nn>0; ) {
! struct modeNode *mNode = newchan->members.list[--nn];
! if (IsService(mNode->user)) continue;
! DelUser(mNode->user, opserv, 1, OSMSG_ILLEGAL_KILL_REASON);
! }
! }
! return;
! }
}
--- 1844,1850 ----
global_message(MESSAGE_RECIPIENT_OPERS, message);
}
!
! /* Wait until the join check to shut channels down. */
! newchan->bad_channel = opserv_bad_channel(newchan->name);
}
|