Tested on mIRC version 6.16 (and below) Windows 98 & 2K...
ok I wrote a pack alias to repack addresses like the ones in your browsers address bar now.. characters are unpacked to a base 16 number and given a % symbol before it. thus %2F = / etc... This alias it seems $ifmatch uses my found match and evaluates it thinking its a variable.
alias pack {
var %rx.1 = $replace($1-,$chr(43),$chr(32)) , %rx.2 = $regex(%rx.1,/(%..)/g)
var %x = 0 | while ($regml(%x)) { inc %x | var %rx.1 = $replace(%rx.1,$ifmatch,$chr($base($remove($ifmatch,$chr(37)),16,10))) }
return %rx.1
}
this alias which I have taken out $ifmatch works FLAWLESSLY....
alias pack {
var %rx.1 = $replace($1-,$chr(43),$chr(32)) , %rx.2 = $regex(%rx.1,/(%..)/g)
var %x = 0 | while ($regml(%x)) { inc %x | var %rx.1 = $replace(%rx.1,$regml(%x),$chr($base($remove($regml(%x),$chr(37)),16,10))) }
return %rx.1
}
Not a bad bug.. simple work around, but I thought there was a problem with my code and it boggled me for HOURS! DAYS! im glad I finally fixed it tho..
Last edited by Talon; 22/08/04 11:14 AM.