mIRC Home    About    Download    Register    News    Help

Print Thread
#27056 30/05/03 01:37 PM
Joined: May 2003
Posts: 730
S
ScatMan Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
$() is the same as $eval() ,
so i think there is bug in this identifiers, $({) and $(}) returns
0 0
:|


#27057 30/05/03 02:22 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Heh, this is funny. $eval({,N) returns "N-1 N-1" for N > 0. It works correctly for N = 0 though.

However, this is probably not a bug with $eval() itself: mirc doesn't allow you to use a { or a } (by itself) as a parameter to any identifier. This one might be a general script parsing bug, since identifiers don't have problems with other special characters (like [ and ]) being used alone: //echo -s $+([,a,]) works fine, so it just feels right to expect that //echo -a $+({,a,}) works too.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#27058 30/05/03 02:32 PM
Joined: May 2003
Posts: 730
S
ScatMan Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
no, $+({,a,}) is not working, if u want it to work u can use $+($({,0),a,$(},0))

#27059 30/05/03 02:59 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
I know it doesn't work. What I meant is that one would expect it to work, but it doesn't.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#27060 10/06/03 04:09 PM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
Quote:

$(...)
This identifier can only be used in the text match section of an event definition. It allows you to create a match parameter dynamically.

on 1:TEXT:$(*hello $me $+ *):?:echo hello back!



If it ain't broken, don't fix it!

Link Copied to Clipboard