Page 1 of 2
Add Commands?
Posted: Mon Feb 18, 2008 7:10 pm
by xVipeRx1989
Hey,
i installed a Unrealircd, and have some question,
is there are any way to add some commands? i mean like all the regular commands,
exmple, like "/admin",
so if i want to make some command, let's say just "/seen",
and it will tell some text -- can i do it' some how?
Re: Add Commands?
Posted: Tue Feb 19, 2008 6:10 pm
by srcmaster
Sure, you can. But at least, you must have some coding skills. Also 3.2's module architecture is easy understandable. (take a look at:
http://modules.unrealircd.com/ and m_template.c)
Otoh, try take a look at modules page..
Add Commands?
Posted: Sat Mar 01, 2008 12:59 am
by DeviL69
deny channel {
channel "#";
reason "Ndalohet hapja e kanaleve te reja. Kanal kryesor eshte #ALbaChat";
redirect "#ALbaChat";
where i have made mistake here?
Re: Add Commands?
Posted: Sat Mar 01, 2008 1:41 am
by Kinight
no ending bracket

Re: Add Commands?
Posted: Sat Mar 01, 2008 1:51 am
by DeviL69
deny channel {
channel "#";
reason "Ndalohet hapja e kanaleve te reja. Kanal kryesor eshte #ALbaChat";
redirect "#ALbaChat";
};
/
where should i put that ending bracket?
Re: Add Commands?
Posted: Sat Mar 01, 2008 1:59 am
by Kinight
you got it on now, but the # should be an actual channel

Re: Add Commands?
Posted: Sat Mar 01, 2008 2:25 am
by DeviL69
i have jut 4 channel, thats why i do redirect, if users try 2 connect any other channel, i want them to be redirected in #ALbaChat, but still it doesnt works
Re: Add Commands?
Posted: Sat Mar 01, 2008 1:58 pm
by Kinight
weird... Try taking the / out at the bottom -AND- try /rehash I tested it w/o the / and it worked

Re: Add Commands?
Posted: Sun Mar 02, 2008 11:23 pm
by DeviL69
i did and it doesnt works
can u past all code here ?
Re: Add Commands?
Posted: Mon Mar 03, 2008 1:15 pm
by Casper
I think it should be like this:
deny channel {
channel "#*";
reason "Ndalohet hapja e kanaleve te reja. Kanal kryesor eshte #ALbaChat";
redirect "#ALbaChat";
};
You missed the wildcard " * ", which should be there as "#" is also a channel.
Re: Add Commands?
Posted: Tue Mar 04, 2008 4:50 am
by DeviL69
ah it doesnt works, and any user can use /stats r , /stats f , how can i deny that?
Re: Add Commands?
Posted: Tue Mar 04, 2008 11:30 am
by Casper
Taken from the
docs:
set::oper-only-stats {<stats-flag>; <stats-flag>;};
Specifies a list of stats flags that can only be used by opers. This only works with long stats flags.
Re: Add Commands?
Posted: Wed Mar 05, 2008 4:16 am
by DeviL69
ok thnks Casper, but with the channel redirecting still nothing
can u paste all code here, cz i cant find where is my mistake
Re: Add Commands?
Posted: Wed Mar 05, 2008 4:18 am
by DeviL69
/* The minimum time a user must be connected before being allowed to use a QUIT message,
* This will hopefully help stop spam */
anti-spam-quit-message-time 10s;
/* Make the message in static-quit show in all quits - meaning no
custom quits are allowed on local server */
/* static-quit "Client quit"; */
/* You can also block all part reasons by uncommenting this and say 'yes',
* or specify some other text (eg: "Bye bye!") to always use as a comment.. */
/* static-part "Parted of ALbaParty.net "; */
*/
and i also need static part and quit, but i couldnt fix myself, i tried many times but to much errors and i left it like it was
Re: Add Commands?
Posted: Wed Mar 05, 2008 10:46 am
by Casper
/* static-quit "Client quit"; */
How about removing the "/*" and the "*/" ? Same goes for the static part.
Seeing all this makes me think you perhaps don't know what you're exactly doing. Reconsider running an IRCd
