alias

These are old archives. They are kept for historic purposes only.
Post Reply
Oyarsa
Posts: 54
Joined: Wed Feb 14, 2007 12:35 pm
Location: irc.otherworlders.org
Contact:

alias

Post 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?
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post by Jobe »

Ever tried /umode2 ?

Also try this alias:

Code: Select all

alias "umode" {
        format ".+" {
                command "umode2";
                type real;
                parameters "%1-";
        };
        type command;
};
Oyarsa
Posts: 54
Joined: Wed Feb 14, 2007 12:35 pm
Location: irc.otherworlders.org
Contact:

Post by Oyarsa »

Jobe1986 wrote:Ever tried /umode2 ?
/umode2 doesnt seem to work at all. I just attempted it.
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post 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-";
    };
};
Oyarsa
Posts: 54
Joined: Wed Feb 14, 2007 12:35 pm
Location: irc.otherworlders.org
Contact:

Post by Oyarsa »

ah it was my mistake ... it does work.

thanks Jobe
Post Reply