mIRC Home    About    Download    Register    News    Help

Print Thread
B
BoredNL
BoredNL
B
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)
}

Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
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,253
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,253
alias blah echo -a * You just said $+($readini($mircini,text,commandchar),blah) $1-


Link Copied to Clipboard