mIRC Homepage

/bcopy error when source is empty

Posted By: Wims

/bcopy error when source is empty - 18/08/20 01:01 PM

As a result of a call to $regsubex(name,string,pattern,sub,&out), it's possible to get an empty string returned, in this case $regsubex does create the &out binvar, with nothing in it.

If you try to /bcopy from a binvar like that, which is created and $bvar(&out) is not $null, /bcopy reports an error, I think this is a bug and that it should naturally do nothing if there's nothing to copy, only if the binvar does not exist at all, aka $bvar(&out) is $null, /bcopy should report an error.
Posted By: Khaled

Re: /bcopy error when source is empty - 18/08/20 06:53 PM

Thanks for your bug report. This issue has been fixed for the next version.
© 2020 mIRC Discussion Forums