mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2003
Posts: 154
B
BoredNL Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Jan 2003
Posts: 154
Is there some $blah for finding the name of the called alias?

ex:

alias blah {
echo you just said $+(/,$alias.name)
}

Also, is there some way to see if it was called as $blah, or /blah?

such as..

alias blah {
if ($alias.ran == $) { return you just ran $+($,$alias.name) }
echo you just said $+(/,$alias.name)
}


- Wherever you go there you are.[color:lightgreen]
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Quote:
Also, is there some way to see if it was called as $blah, or /blah?

$isid
Returns $true if an alias was called as an identifier, otherwise $false.

Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
alias blah echo -a * You just said $+($readini($mircini,text,commandchar),blah) $1-


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard