Anope IRC Services

Anope Support => 1.8.x/1.7.x Support (Read Only) => Topic started by: DragonRyder on April 12, 2011, 04:25:13 AM

Title: Channel Modes
Post by: DragonRyder on April 12, 2011, 04:25:13 AM
i have looked, but have not found a module for what i need. i need a module that will mark all unregistered channels +s. we use a module that makes it so a user has to have an oper register a channel for them. but lots of folks join channels that are not used on our net but are open on other nets. we wish to hide these channels so that our stats do not see them. much thanks.
Title: Re: Channel Modes
Post by: katsklaw on April 12, 2011, 04:58:16 AM
what's going to stop ChanOps in unreg'ed channels from setting -s ??

btw, this is a fairly easy module to write, I might be interested. you should also be aware that it will hide the channel from  /list as well. which ChanOps might find counter productive.
Title: Re: Channel Modes
Post by: DragonRyder on April 12, 2011, 07:45:01 PM
Well I am the Network Owner/Founder, and that is what I am needing is a module that will keep a channel locked to +s and not show in /list except to IRC Admins until the channel is registered and then the mode +s can be removed. We currently use a module that removes @op from anyone joining a non registered channel, and a module that makes it so only an IRC Admin can register a channel for the user. I am sure there are other networks who could use a module like this. I know my network would greatly appreciate a module that could do this for us so that our /list that normal users see does not look so cluttered and messed up.
Title: Re: Channel Modes
Post by: katsklaw on April 12, 2011, 08:12:15 PM
I'll do the module for you. No need to "sell" the idea further  ;D

I was just curious as to how you'd keep +s set, which you've answered by stating unreg'ed channels don't have @ops.

BTW, if you use Unreal3.2.8.1 there is a feature in it to make it so users aren't granted ops when they create the channel. set::level-on-join. 3.2.8.1 valid options are op and none. 3.2.9 will have a feature I requested and partially patched that allows owner, protect, op, halfop, voice or none.

set::level-on-join <none|voice|halfop|op|protect|owner>;
The mode that a user will get when he's the first to join a channel. The default is 'op' (channel operator).
Title: Re: Channel Modes
Post by: katsklaw on April 12, 2011, 09:59:45 PM
Initial release complete, just waiting for approval. Module name is cs_secretunreg

Debug Log:

Code: [Select]
[Apr 12 15:57:48.196882 2011] debug: Received: :ircd.irc SJOIN !1DfBpA #Testing :@katsklaw
[Apr 12 15:57:48.197010 2011] debug: Emitting event "join_channel" (3 args)
[Apr 12 15:57:48.197079 2011] debug: Creating channel #Testing
[Apr 12 15:57:48.197141 2011] debug: katsklaw joins #Testing
[Apr 12 15:57:48.197204 2011] debug: Changing modes for #Testing to +o katsklaw
[Apr 12 15:57:48.197265 2011] debug: Setting +o on #Testing for katsklaw
[Apr 12 15:57:48.197329 2011] debug: Emitting event "join_channel" (3 args)
[Apr 12 15:57:48.197407 2011] debug: Sent: :services.irc MODE #Testing +s
Title: Re: Channel Modes
Post by: DragonRyder on April 13, 2011, 03:02:36 AM
thank you so much
Title: Re: Channel Modes
Post by: katsklaw on April 13, 2011, 04:15:35 AM
I did forget to mention that I did it on 1.8.5 release with Unreal3.2.9-rc1 (modified), but it should work on any version of Anope that uses EVENT_JOIN_CHANNEL (EVENT_STOP). Which is like uhm .. all of them. hahaha At least version 1.7.x and maybe even 1.6 .. who knows. Should also work with any ircd since +s is an RFC1459 specific chanmode.

As soon as it gets approved you can download it from the module site or PM me your email addy and I'll attach it in reply.

Any bugs report to katsklaw -at- msn's dotcom thingy.
Title: Re: Channel Modes
Post by: Jens Voss on April 13, 2011, 05:54:28 AM
http://modules.anope.org/index.php?page=view&id=220
Title: Re: Channel Modes
Post by: DragonRyder on April 13, 2011, 07:27:27 PM
grabbed it and i am installing it now - thanks so much
Title: Re: Channel Modes
Post by: DragonRyder on April 14, 2011, 02:39:00 PM
anyone and everyone using anope should get this module if they have their unreal set with "level-on-join none"
(we also use a module that helps removes @ops from user on join just in case)

this is working out so awesomely!
Title: Re: Channel Modes
Post by: DragonRyder on June 22, 2011, 01:12:01 AM
i noticed you made another module, that is similiar to the one i requested, i was wondering if "cs_setmodeunreg" will work along side of cs_secretunreg
Title: Re: Channel Modes
Post by: katsklaw on June 22, 2011, 03:22:05 AM
i noticed you made another module, that is similiar to the one i requested, i was wondering if "cs_setmodeunreg" will work along side of cs_secretunreg

Short answer, you shouldn't.

Long answer, cs_setmodeunreg replaces cs_secretunreg as it's more configurable. You can make cs_setmodeunreg work exactly the same by setting +s and -s respectfully in the set and unset config directives.

If all you need is +/-s then there is no need to replace the module. However, cs_secretunreg will not be updated since it's been superseded by cs_setmodeunreg.