Page 1 of 1

Allow channel block change with new update.

Posted: Tue Mar 15, 2005 2:36 am
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?

Posted: Tue Mar 15, 2005 3:02 am
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"; };

Posted: Tue Mar 15, 2005 3:17 am
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.