Closing hybrid to a single channle

Diane Bruce db at db.net
Thu Oct 7 08:56:31 EDT 2004


On Wed, Oct 06, 2004 at 10:54:25AM +0200, Webmaster Eagleman wrote:
> Yes but the channel is open 24/7 and I am not i it 24/7 :)

You could reverse the sense of a channel resv easily. i.e. Make it
that a channel has to be listed as reserved before you can join it.
Something like this in modules/core/m_join.c should work (untested)


*** m_join.c.orig	Thu Oct  7 08:51:41 2004
--- m_join.c	Thu Oct  7 08:52:03 2004
***************
*** 497,503 ****
        continue;
      }

!     if (find_channel_resv(chan) &&
          (!IsOper(source_p) && ConfigFileEntry.oper_pass_resv))
      {
        sendto_one(source_p, form_str(ERR_BADCHANNAME),
--- 497,503 ----
        continue;
      }

!     if (!find_channel_resv(chan) &&
          (!IsOper(source_p) && ConfigFileEntry.oper_pass_resv))
      {
        sendto_one(source_p, form_str(ERR_BADCHANNAME),

Then in your ircd.conf

resv {
        channel = "#example";
}

Then #example would be the only channel a normal user could join.

Not sure if this is what you wanted or not. It's also fairly easy
to force people to join this channel after registration with a bit
more code.

- Diane



More information about the hybrid mailing list