mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 271
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 271
hey, isnt there a way to return the command that called an alias, i cant remember but i thought there was....for example:

alias -l example {
echo -a * this alias was called from <identifer>
}

* This alias was called from timertest

something to that effect...

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
No there isn't but whis was discussed before. It would be a doog debugging feature tho, somethign echo when you have a problme, though i don't see a purpose for it otherwise--unless others would care to enlighten me. grin


-KingTomato
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Well I'm sure people will find something to do with it:

alias sendmsg {
if ($calledfrom(1).name == omsg) {
.omsg $1-
}
.msg $1-
}

Yea I know thats not really a good use, but it's the first thing that came to mind smile

Joined: Dec 2002
Posts: 271
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 271
here's enlightenment:

timer $+ $chan name

alias name {
var %a = <IDENT to get command that called alias>
;so lets pretend that %a gets set to timer%#chan1
}
well now we have means to get the channel we want to preform the command in, thus the ability to use multichannel processing for many things....

Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
* Raccoon only hopes Khaled adds $calias sometime in the next few versions.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!

Link Copied to Clipboard