Add Commands?
-
- Posts: 3
- Joined: Mon Feb 18, 2008 7:08 pm
Add Commands?
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?
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?
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..
Otoh, try take a look at modules page..
-- srcmaster
http://www.crypthon.org/
http://www.crypthon.org/
Add Commands?
deny channel {
channel "#";
reason "Ndalohet hapja e kanaleve te reja. Kanal kryesor eshte #ALbaChat";
redirect "#ALbaChat";
where i have made mistake here?
channel "#";
reason "Ndalohet hapja e kanaleve te reja. Kanal kryesor eshte #ALbaChat";
redirect "#ALbaChat";
where i have made mistake here?
Re: Add Commands?
deny channel {
channel "#";
reason "Ndalohet hapja e kanaleve te reja. Kanal kryesor eshte #ALbaChat";
redirect "#ALbaChat";
};
/
where should i put that ending bracket?
channel "#";
reason "Ndalohet hapja e kanaleve te reja. Kanal kryesor eshte #ALbaChat";
redirect "#ALbaChat";
};
/
where should i put that ending bracket?
Re: Add Commands?
you got it on now, but the # should be an actual channel
Re: Add Commands?
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?
weird... Try taking the / out at the bottom -AND- try /rehash I tested it w/o the / and it worked
Re: Add Commands?
i did and it doesnt works
can u past all code here ?
can u past all code here ?
Re: Add Commands?
I think it should be like this:
You missed the wildcard " * ", which should be there as "#" is also a channel.deny channel {
channel "#*";
reason "Ndalohet hapja e kanaleve te reja. Kanal kryesor eshte #ALbaChat";
redirect "#ALbaChat";
};
Ex Network-Administrator
Re: Add Commands?
ah it doesnt works, and any user can use /stats r , /stats f , how can i deny that?
Re: Add Commands?
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.
Ex Network-Administrator
Re: Add Commands?
ok thnks Casper, but with the channel redirecting still nothing
can u paste all code here, cz i cant find where is my mistake
can u paste all code here, cz i cant find where is my mistake
Re: Add Commands?
/* 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
* 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?
How about removing the "/*" and the "*/" ? Same goes for the static part./* static-quit "Client quit"; */
Seeing all this makes me think you perhaps don't know what you're exactly doing. Reconsider running an IRCd
Ex Network-Administrator