4.34 - Official Channels Block

These are old archives. They are kept for historic purposes only.
Post Reply
Alex
Posts: 88
Joined: Sun Dec 26, 2004 11:07 pm
Location: Kalmar Län - Sweden

4.34 - Official Channels Block

Post by Alex »

Can anyone tell me where I find the Official Channel Block in unrealircd.conf :?: I've been looking through my whole config but there are no places where the following example is set:

Code: Select all

official-channels {
	"#channel" { topic "The default topic"; };
};
Official channels are shown in /list even if no users are in the channel. The topic is optional and is only shown in /list if it has 0 users.

Code: Select all

official-channels {
	"#Help" { topic "The official help channel, if nobody is present type /helpop helpme"; };
	"#Home";
	"#Main" { topic "The main channel"; };
};
Thanks.
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post by Jobe »

Have you already got official channels set up, as in showing even when empty or are you just wanting to know where to put the block in your unrealircd.conf file to make official channels show even when empty?

If its a case of you just want to know where to put it then anywhere works. Mine have ended up at the end of the file with no errors caused.
Alex
Posts: 88
Joined: Sun Dec 26, 2004 11:07 pm
Location: Kalmar Län - Sweden

Post by Alex »

Hi Jobe1986,

Yes, I'd appreciate if you could tell me where to put the block in my unrealircd.conf.

Thanks.
White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic »

hi Alex, the blocks can go anywhere inside the conf file
the config file has no order for things to be in :)
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D
Alex
Posts: 88
Joined: Sun Dec 26, 2004 11:07 pm
Location: Kalmar Län - Sweden

Post by Alex »

Hi White_Magic,

Appreciated the answer and thanks for the quick reply. :wink:
Alex
Posts: 88
Joined: Sun Dec 26, 2004 11:07 pm
Location: Kalmar Län - Sweden

Post by Alex »

Ok, I followed the example in the Unreal3.2 documentation like this:

Code: Select all

official-channels {
                   "#channel" { topic "The default topic"; };
};
but got the following message when I did a /rehash

Code: Select all

*** Notice -- error: unrealircd.conf:615: Unterminated quote found
*** Notice -- error: Could not load config file unrealircd.conf
*** Notice -- error: IRCd configuration failed to load
Followed exactly the above, so I'm not sure where I failed on this.
White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic »

if go to line 615 of ur conf,
then make sure each opening " has a closing one
you have

Code: Select all

" something
you should have

Code: Select all

" something " 
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D
Alex
Posts: 88
Joined: Sun Dec 26, 2004 11:07 pm
Location: Kalmar Län - Sweden

Post by Alex »

Ok, the below is what I have set in the channel block:

Code: Select all

official-channels {
        "#ChannelName" { topic "Welcome to #ChannelName. If you have any questions, just ask. You can also ask
        your questions at http://www.something.net/forum/index.php"; };
};
I can't see I should have something wrong there, but if I have please correct me.
White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic »

i think its becuz the topic isnt all on 1 line, :)
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post by Jobe »

As far as i am aware the topic should be all on one line.
Alex
Posts: 88
Joined: Sun Dec 26, 2004 11:07 pm
Location: Kalmar Län - Sweden

Post by Alex »

Thank you so much guys. Tried a new topic on one line, and everything worked fine.

Thank you. :wink:
Post Reply