mIRC Home    About    Download    Register    News    Help

Print Thread
#71619 16/02/04 05:45 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
say if i put an alias called "s" in aliases
then make a new script called "s.mrc"
and write one line: on *:start:{ echo -s $s }
$s returns the alias file, i think $scriptdir should return the remote $s was called from.


New username: hixxy
#71620 16/02/04 09:32 PM
Joined: Sep 2003
Posts: 70
M
Babel fish
Offline
Babel fish
M
Joined: Sep 2003
Posts: 70
That sort of behaviour would probably break a lot of scripts. It would be useful to know the location of calling scripts (It'd be great for custom errors, for one thing), but I think there should be a new identifier for it and for $scriptline if it is implemented.

#71621 17/02/04 06:22 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Then again - this problem is simply caused by bad coding and is therefor easily fixed...


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#71622 17/02/04 11:00 AM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Perhaps the addition of something like $trace(), which could be used to trace backwards through functions/events...

eg. $trace(N) with properties .type (event, function, raw, etc.), .function, .script, .scriptline, .scriptdir, .event (ctcp, text, input, etc.).

I'm not sure if a .scriptdir property would be worthwhile if .script is there, but whatever.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#71623 17/02/04 02:31 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
You mean, something like this? smile

Yes, that would be nice.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#71624 17/02/04 05:13 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
its not a problem, nor do i have an alias like that.. it's just something i thought would be a good feature.


New username: hixxy

Link Copied to Clipboard