anonops in ircd.conf

Diane Bruce db at db.net
Fri Oct 15 15:55:36 EDT 2004


On Fri, Oct 15, 2004 at 12:10:48PM -0600, Chet Rebman wrote:
>
> Thanks Fool for the input, I finally managed to get back to this.
>
...
> I would like the new channels created to default to +ant if possible.
> Should this line
> have accomplished this?

You'll need a patch. Something like this (completely untested)
You'll find m_join.c in modules. Hope this helps.


*** m_join.c.orig	Fri Oct 15 15:52:27 2004
--- m_join.c	Fri Oct 15 15:54:02 2004
***************
*** 317,326 ****
  	  chptr->channelts = CurrentTime;
  	  chptr->mode.mode |= MODE_TOPICLIMIT;
  	  chptr->mode.mode |= MODE_NOPRIVMSGS;
  	  modebuf[0] = '+';
! 	  modebuf[1] = 'n';
! 	  modebuf[2] = 't';
! 	  modebuf[3] = '\0';

            /*
             * XXX - this is a rather ugly hack.
--- 317,328 ----
  	  chptr->channelts = CurrentTime;
  	  chptr->mode.mode |= MODE_TOPICLIMIT;
  	  chptr->mode.mode |= MODE_NOPRIVMSGS;
+ 	  chptr->mode.mode |= MODE_HIDEOPS;
  	  modebuf[0] = '+';
! 	  modebuf[1] = 'a';
! 	  modebuf[2] = 'n';
! 	  modebuf[3] = 't';
! 	  modebuf[4] = '\0';

            /*
             * XXX - this is a rather ugly hack.

- Diane



More information about the hybrid mailing list