Page 1 of 1
alias
Posted: Sun May 27, 2007 1:30 pm
by Oyarsa
I'm trying to create an alias but the syntax is alluding me.
I want to be able to use /umode +whater to set usermodes instead of typing /mode my_nick +whatever
any help on that?
Posted: Sun May 27, 2007 4:04 pm
by Jobe
Ever tried /umode2 ?
Also try this alias:
Code: Select all
alias "umode" {
format ".+" {
command "umode2";
type real;
parameters "%1-";
};
type command;
};
Posted: Sun May 27, 2007 6:18 pm
by Oyarsa
Jobe1986 wrote:Ever tried /umode2 ?
/umode2 doesnt seem to work at all. I just attempted it.
Posted: Sun May 27, 2007 7:36 pm
by Jobe
Try "/quote umode2" then? If that works im guessing youre using a client which like IRSSI doesnt forward any unknown commands to the server as if you did "/quote COMMAND"
The UMODE2 command has been around for a long time in Unreal as far as I now
Youd have to ask a dev which version it arrived in though. But to be honest if youre using a version that old then you really should upgrade.
Also I found some alias code for unrealircd.conf on the bug tracker which as far as I can see should work (same as the alias block I posted above with 3.2.6). The code below was posted by aquanight at
http://bugs.unrealircd.org/view.php?id=3295
Code: Select all
alias "umode" {
format "^$" {
type real;
command "mode";
parameters "%n";
};
format "^.+$" {
type real;
command "mode";
parameters "%n %1-";
};
};
Posted: Sun May 27, 2007 7:46 pm
by Oyarsa
ah it was my mistake ... it does work.
thanks Jobe