Allow channel block change with new update.

These are old archives. They are kept for historic purposes only.
Post Reply
Matridom
Posts: 296
Joined: Fri Jan 07, 2005 3:28 am

Allow channel block change with new update.

Post by Matridom »

I used to use this block successfully for multiple channels to be allowed.

Code: Select all

allow 
   channel {
       channel "#Lobby";
       channel "#Oper";
       channel "#Memebers";
       };
With version 3.2.3, i get the following errors on rehash/load

Code: Select all


[9:28pm] -Irc.matridom.ca- *** Notice -- Loading IRCd configuration ..
[9:28pm] -Irc.matridom.ca- *** Notice -- [warning] configfiles/banlist.conf:11: Duplicate allow channel::channel directive
[9:28pm] -Irc.matridom.ca- *** Notice -- [warning] configfiles/banlist.conf:12: Duplicate allow channel::channel directive
[9:28pm] -Irc.matridom.ca- *** Notice -- [SQL Log] SQL connection activated
[9:28pm] -Irc.matridom.ca- *** Notice -- Configuration loaded without any problems ..
To allow the configuration file to load without any errors, i had to rewrite it like this.

Code: Select all

allow
        channel {
                channel "#Lobby";
        };
allow
        channel {
                channel "#Oper";
        };
allow
        channel {
                channel "#Members";
        }; 
I personaly find this last method messy.. is this the proper solution or am i missing something simple?
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

*g*
I think duplicate checking for that entry was accidently added, because it indeed supports multiple channel items in one allow channel block if I read the post-test code.

So, I suggest you to report it on http://bugs.unrealircd.org/ :)

On a sidenote, (for now,) you can just use 1 line for each item if you want:

Code: Select all

allow channel { channel "#blah"; };
allow channel { channel "#blih"; };
allow channel { channel "#bluh"; };
Matridom
Posts: 296
Joined: Fri Jan 07, 2005 3:28 am

Post by Matridom »

Syzop wrote:*g*
I think duplicate checking for that entry was accidently added, because it indeed supports multiple channel items in one allow channel block if I read the post-test code.

So, I suggest you to report it on http://bugs.unrealircd.org/ :)

On a sidenote, (for now,) you can just use 1 line for each item if you want:

Code: Select all

allow channel { channel "#blah"; };
allow channel { channel "#blih"; };
allow channel { channel "#bluh"; };
Done and done.
Post Reply