Anope IRC Services

Anope Development => Feature Requests => Topic started by: Mark on July 13, 2006, 10:00:46 PM

Title: Only join reg Channels
Post by: Mark on July 13, 2006, 10:00:46 PM
Hi

Givs a modul there make that users cant join a channel theres no registred? I have the modul that user can't reg a Channel. But how can i made that they cant join unreg channels?

Great

Mark
Title:
Post by: SpaceDoG on July 14, 2006, 01:40:08 AM
That won't be a module that can be done via anope. What you need to do is see if there is one that is made for your IRCd. I think Unreal has one but I'm not 100% positive.
Title:
Post by: Dave Robson on July 14, 2006, 08:33:12 AM
There is a module somewhere, i cant remember the name, which bascaily just kicks anyone who joins an unregistred channel out again.  However, if you do use unreal, consider using the allow/deny channel option.
Title:
Post by: Mark on July 14, 2006, 09:31:00 AM
HI

Thank you very mutch.
I Have found this http://dev.anope.de/unreal/m_onlyopersjoin.c. Its great. But when a Channel is registred, the user can't join it when 0 Users in the Chan. So i have make mit allow and deny block so you say. Thank you a lot.

Great

Mark
Title:
Post by: Jobe on July 14, 2006, 12:08:54 PM
Ok to use the allow and deny channel blocks for this purpose you need to explicitly list every channel people are allowed to join and deny everything else. The following example allows users to join #home but no other channel:
Code: [Select]
deny channel {
channel "#*";
reason "Registered channels only.";
};

allow channel {
channel "#home";
};


I dont use it on my network but that should work.

Also if you wish to be notified when a user attempts to join a channel that is denied by the deny block simply add "warn on;" into the deny channel block.

[Edited on 14-7-2006 by Jobe1986]
Title:
Post by: Alex on July 26, 2006, 01:08:38 PM
Quote
Originally posted by Mark
Hi

Givs a modul there make that users cant join a channel theres no registred? I have the modul that user can't reg a Channel. But how can i made that they cant join unreg channels?

Great

Mark
If you are using Unreal 3.2.4 or 3.2.5 you can set channel mode +R. That will deny unregistered people access to your channel. If you wish to avoid nickname change, you can set channel mode +N.

Command: /cs SET #ChannelName MLOCK +NR

Hope this helps.