Page 1 of 1

Aliases umode (UMODE Unknown command)

Posted: Wed Sep 29, 2004 5:00 pm
by KenMasters
as I can create you aliases for /umode +flags ¿?

UMODE Unknown command :!:

hmmm....

I cannot use /umode +Flags leaves to me, UMODE Unknown command. is possible to be created an alias for umode, asi since there is alias for identify :?:

instead of using /mode nick +flags to use /umode +flags... can be created alias? .. in server, NOT in mIRC

Posted: Wed Sep 29, 2004 5:48 pm
by codemastr
What?

Posted: Thu Sep 30, 2004 6:24 am
by Ron2K
*Ron goes into "translator mode"*

Sounds like he wants an alias /UMODE that let's you do, for example /UMODE +x instead of /MODE currentnick +x.

I'm not sure if aliases can do this though.

Posted: Thu Sep 30, 2004 7:28 am
by aquanight
/umode2 works

Posted: Thu Sep 30, 2004 5:51 pm
by AngryWolf
Some IRC clients provide you with a /umode command that does the same as /mode <yournick>, without having to enter your current nickname. For example, X-Chat or EPIC. (Maybe mIRC, too?) If your client is not like that, /umode2, which aquanight suggested and is a server command, should still work, it's only one character longer.

Oh, and if you'd like to know, currently UnrealIRCd doesn't support "real aliases" (when target is a command). Perhaps sometime in the future...

Posted: Thu Sep 30, 2004 5:58 pm
by katsklaw
mIIRC users can just type

Code: Select all

/alias umode mode $me $1
in ANY window connected or not .. or you can open the script editor and in aliases put

Code: Select all

umode mode $me $1

Posted: Fri Oct 01, 2004 3:56 am
by aquanight
umode mode $me $1-

Don't forget that snomasks can be set this way too!

Posted: Fri Oct 01, 2004 5:41 am
by Ron2K
AngryWolf wrote:Oh, and if you'd like to know, currently UnrealIRCd doesn't support "real aliases" (when target is a command). Perhaps sometime in the future...
Thought as much.

Posted: Fri Oct 01, 2004 5:54 pm
by katsklaw
aquanight wrote:umode mode $me $1-

Don't forget that snomasks can be set this way too!
you don't need the tick after $1 simply because there is no spaces in usermodes which means that $2 won't ever exist.

Code: Select all

/umode +abc-xyz
as a side note you can make a chanmode alias as well

Code: Select all

/alias cmode mode $1-
Usage would them be /cmode #channel <args>

At that point the the tick is required because there are spaces in /mode when applied to channels.

Posted: Fri Oct 01, 2004 6:08 pm
by Dukat
katsklaw wrote:you don't need the tick after $1 simply because there is no spaces in usermodes which means that $2 won't ever exist.
As aquanight said... Don't forget the Snomasks, e.g.

Code: Select all

/mode Dukat +s +j

Posted: Fri Oct 01, 2004 6:24 pm
by katsklaw
if you include SNOmasks .. sure. :D I wasn't including snomasks because I have a seperate alias for that .. but your right, sorry I didn't read your post correctly aquanight.

As another side note I have an mirc add-on in development for Unreal 3.2+ that filters Server Notices. The addon re-routes the server notices to specified windows, either status, the active window or a dedicated @window. There is also a seperate setting for *chat notices .. also to status, active or a special chat @window. The filter also features a dialog that helps you set snomasks and usermodes with a few mouse clicks. I will need to clean the code up and put a few final touches on it but if anyone is interested in it .. let me know. The add-on works with mIRC6.X and up. Once I get the add-on finished I'll have some screenshots.

Posted: Sat Oct 02, 2004 5:20 am
by aquanight
katsklaw wrote:as a side note you can make a chanmode alias as well

Code: Select all

/alias cmode mode $1-
Usage would them be /cmode #channel <args>

At that point the the tick is required because there are spaces in /mode when applied to channels.
Slightly better (and the more-or-less version I use):

Code: Select all

/cmode /mode # $1-
Though, since I use Klient now, it's a bit more complicated than that, but that's essentially it. Basically, you do /cmode in a channel and the mode change applies to that channel :) .

Posted: Sat Oct 02, 2004 3:03 pm
by katsklaw
mIRC can use that alias as well. However, so that I can change modes in channels without having to put the focus in it, or as an oper with can_override I don't even need to be in it to use /cmode.

Posted: Sat Oct 02, 2004 3:40 pm
by aquanight
katsklaw wrote:mIRC can use that alias as well. However, so that I can change modes in channels without having to put the focus in it, or as an oper with can_override I don't even need to be in it to use /cmode.
In that case, wouldn't regular /mode be better, because it's one less character to type? :P