mIRC Home    About    Download    Register    News    Help

Print Thread
Bug with $* #143187 22/02/06 01:30 AM
Joined: Oct 2005
Posts: 21
P
poiuy_qwert Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Oct 2005
Posts: 21
Me and a few other people get a bug where when using $* in an eval script gives `~$*. This happened in 6.16 and still happens in 6.17. I havn't investigated this further than using 2 eval scripts but these are what i used:
Code:
; in a channel type [b]/e $me $*[/b]
alias e {
  var %ticks $tick
  say $+([,$($1-,1),]) == $+([,$iif($($1-,2),$v1,$!null),]) ( $+ $calc($ticks - %ticks) $+ ms)
}

Code:
; in a channel type [b]$me $*[/b]
on *:INPUT:#:{
  if (($left($1,1) == $) || ($left($1,1) == %)) && ($ctrlenter != $true)  {
    var %ticks $ticks
    say $+([,$1-,]) == $+([,$iif($eval($1-,2) == $null,Invalid,$v1),]) $+($chr(40),$calc($ticks - %ticks),ms,$chr(41))
    haltdef
  }
}


Edit: un-piped code

Last edited by poiuy_qwert; 22/02/06 01:34 AM.

- poiuy_qwert
Re: Bug with $* #143188 22/02/06 01:13 PM
Joined: Dec 2002
Posts: 5,150
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,150
The $* identifier is an old and no longer documented identifier and was removed from the mIRC help file many versions ago. There are no plans to make any further changes it. For looping you should now use while or goto loops.

Re: Bug with $* #143189 22/02/06 03:13 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
This has been reported before. There are messy hacks you can use to get $* to work inside of identifiers but I wouldn't recommend any of them.