Please someone help me with this thing

These are old archives. They are kept for historic purposes only.
Post Reply
c00l
Posts: 3
Joined: Tue Jan 11, 2011 5:58 pm

Please someone help me with this thing

Post by c00l »

Hello, I have an IRC server and i am trying to configure it. However i face some difficulties as the .conf file gives me some errors. Can you help me out with this?

Please tell me if you need any more information. TIA.

Here are the errors:
Server: Notice -- error: unrealircd.conf:376: unknown directive set::set
[6:50] :> Server: Notice -- error: set::kline-address is missing
[6:50] :> Server: Notice -- error: set::maxchannelsperuser is missing
[6:50] :> Server: Notice -- error: 3 errors encountered
[6:50] :> Server: Notice -- error: IRCd configuration failed to pass testing
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: Please someone help me with this thing

Post by katsklaw »

What you pasted tells you what's wrong.

error: unrealircd.conf:376: unknown directive set::set

at or near line 376 you have specified a set block inside a set block.
c00l
Posts: 3
Joined: Tue Jan 11, 2011 5:58 pm

Re: Please someone help me with this thing

Post by c00l »

Please tell me whats wrong with this structure

set {
network-name "dummy";
default-server "Irc.bummy.Net";
services-server "Services.dummy.Net";
stats-server "Stats.dummy.Net";
help-channel "#Ndihme";
hiddenhost-prefix "dummy";
prefix-quit "klm";
cloak-keys {
"a2JO6fh3Q6w4oN3s7";
"Shfid6sfw3gqG8If";
"sdh3iAe2QH7UfdNsh";
};

hosts {
local "LocaL.Oper.dummy.Net";
global "Irc-Op.dummy.Net";
coadmin "ControL-dummy.Net";
admin "Server-dummy.Net";
servicesadmin "Services-dummy.Net";
netadmin "NetAdmin.dummy.Net";
host-on-oper-up "on";

};


set {
kline-address "[email protected]";
modes-on-connect "+iwxs";
modes-on-oper "+xwgs";
modes-on-join "ntTSCfj [2j#i1,5t#b]:5";
oper-auto-join "#Shqiperia,#ndihme,#dummy,#services,#kuiz,#staff,#admin,#opers";
auto-join "#Shqiperia";
dns {
"XX.XXX.XXX.XX";
timeout 2s;
retries 3;
};

options {
#hide-ulines;
show-connect-info;
flat-map;

};

maxchannelsperuser 15;

anti-spam-quit-message-time 10s;

static-quit "XXX";

static-part "XXX";

flat-map "Nuk keni access te mjaftuar per kete komand.";

oper-only-stats "on";

};

throttle {
connections 10;
period 300s;
};


anti-flood {
nick-flood 3:10;
};


spamfilter {
ban-time 1d;
ban-reason "Spam/Advertising";
virus-help-channel "#Ndihme";

};

};
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: Please someone help me with this thing

Post by katsklaw »

you have 2 close braces at the bottom and are missing one at the end of the first set block thus making unreal think all that is one block. the close brace you see at ht bottom of the top set block is the close brace for your cloak keys sub-block, you need another to close the set block.
c00l
Posts: 3
Joined: Tue Jan 11, 2011 5:58 pm

Re: Please someone help me with this thing

Post by c00l »

the brackets are all in order those are all closed & opened perfectly, & if i try to close te bracket of the first set block it gives me 12 other errors thats my problem :(
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: Please someone help me with this thing

Post by katsklaw »

c00l wrote:the brackets are all in order those are all closed & opened perfectly, & if i try to close te bracket of the first set block it gives me 12 other errors thats my problem :(
Obviously they are not opened and closed perfectly or you wouldn't be getting errors. The 12 other errors are a completely different problem. Errors are the opposite of "perfectly".

Furthermore, I was slightly wrong, the other close brace goes below the hosts sub-block, not the cloak-keys.

I'll run it through indent for you so you can see.

Code: Select all

set {
	network-name "dummy";
	default-server "Irc.bummy.Net";
	services-server "Services.dummy.Net";
	stats-server "Stats.dummy.Net";
	help-channel "#Ndihme";
	hiddenhost-prefix "dummy";
	prefix-quit "klm";
	cloak-keys {
		"a2JO6fh3Q6w4oN3s7";
		"Shfid6sfw3gqG8If";
		"sdh3iAe2QH7UfdNsh";
	};
	hosts {
		local "LocaL.Oper.dummy.Net";
		global "Irc-Op.dummy.Net";
		coadmin "ControL-dummy.Net";
		admin "Server-dummy.Net";
		servicesadmin "Services-dummy.Net";
		netadmin "NetAdmin.dummy.Net";
		host-on-oper-up "on";
	};

};

Code: Select all

set {
	kline-address "[email protected]";
	modes-on-connect "+iwxs";
	modes-on-oper "+xwgs";
	modes-on-join "ntTSCfj [2j#i1,5t#b]:5";
	oper-auto-join "#Shqiperia,#ndihme,#dummy,#services,#kuiz,#staff,#admin,#opers";
	auto-join "#Shqiperia";
	dns {
		"XX.XXX.XXX.XX";
		timeout 2s;
		retries 3;
	};
	options {
		#hide-ulines;
		show-connect-info;
		flat-map;
	};
	maxchannelsperuser 15;
	anti-spam-quit-message-time 10s;
	static-quit "XXX";
	static-part "XXX";
	flat-map "Nuk keni access te mjaftuar per kete komand.";
	oper-only-stats "on";
	throttle {
		connections 10;
		period 300s;
	};
	anti-flood {
		nick-flood 3:10;
	};
	spamfilter {
		ban-time 1d;
		ban-reason "Spam/Advertising";
		virus-help-channel "#Ndihme";
	};
};
As you can see, you actually have 2 set blocks (which is acceptable), curious how the error said you had set::set ?? You also have an extra close brace in the second set block (yes, I removed it). After you get this copied over paste the other 12 errors and I'll help you work those too if you are willing to listen.
Post Reply