Aliases umode (UMODE Unknown command)

These are old archives. They are kept for historic purposes only.
Post Reply
KenMasters
Posts: 2
Joined: Wed Sep 29, 2004 4:51 pm
Location: Peru

Aliases umode (UMODE Unknown command)

Post 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
Last edited by KenMasters on Fri Oct 01, 2004 12:53 am, edited 3 times in total.
KenMasters - TM
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

What?
-- codemastr
Ron2K

Post 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.
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

/umode2 works
AngryWolf
Posts: 554
Joined: Sat Mar 06, 2004 10:53 am
Location: Hungary
Contact:

Post 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...
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Post 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
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

umode mode $me $1-

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

Post 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.
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Post 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.
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post 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
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Post 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.
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post 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 :) .
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Post 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.
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post 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
Post Reply