mIRC Home    About    Download    Register    News    Help

Print Thread
/bcopy error when source is empty #267596 18/08/20 01:01 PM
Joined: Jul 2006
Posts: 3,728
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,728
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.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: /bcopy error when source is empty [Re: Wims] #267598 18/08/20 06:53 PM
Joined: Dec 2002
Posts: 4,839
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,839
Thanks for your bug report. This issue has been fixed for the next version.