mIRC Home    About    Download    Register    News    Help

Print Thread
#76239 23/03/04 05:04 PM
Joined: Feb 2004
Posts: 10
K
Kneet Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Feb 2004
Posts: 10
Is it possible to create a calling alias identifier? Like:
Code:
alias calling_alias {
  second_alias
}
alias second_alias {
  echo $callalias
}

This will show:
calling_alias

Or the name of the event (like 'text' or 'ctcp') if it's not an alias that's calling the second alias.
This could come in handy when used together with the $error identifier.

#76240 23/03/04 11:49 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Yes, this suggestion has been made many times. 1 2 3 4 5 6

An identifier like $calias and $calias(N) would be very handy, especially now that we have error trapping and handling. Access to the Alias Callstack would be exceedingly useful! laugh

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#76241 24/03/04 12:06 AM
Joined: Feb 2004
Posts: 10
K
Kneet Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Feb 2004
Posts: 10
glad to see i'm not the only one asking for such an identifier, but when i look at the date of your post (18/02/2003), i do wonder whether khaled will ever implement it frown

#76242 24/03/04 07:34 AM
Joined: Apr 2003
Posts: 342
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2003
Posts: 342
We have error trapping and handleing? Where?


Beware of MeStinkBAD! He knows more than he actually does!
#76243 24/03/04 07:40 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
[color:660000]/help Error Handling[/color]


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

Link Copied to Clipboard