mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2003
Posts: 38
O
Olathe Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Sep 2003
Posts: 38
If the output would be exceptionally long, $regsubex simply returns its unchanged input instead of giving an error. This leads to incorrect output in code that uses $regsubex.
Code:
alias binencode echo 6 -a * In binary: $regsubex($1-, /(.)/g, $base($asc(\t), 10, 2, 8))

Code:
//binencode $str(a, 116) | binencode $str(a, 119) | binencode $str(a, 117)

Joined: Apr 2004
Posts: 871
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
I agree, this is a bug. If $regsub/$regsubex fail because the resulting line is too long, mirc should instead throw a "line too long" error as it does with all other identifiers.


Saturn, QuakeNet staff
Joined: Apr 2004
Posts: 759
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
.... or fix line too long errors all together :tongue:


$maybe

Link Copied to Clipboard