using /window to create a listbox.

When copying a line of text to the clipboard, mIRC is appending a $crlf to the text, even though I do not have the n flag added to /clipboard.

command is simply: /clipboard %variable

%variable is set by stripping codes for colors/bold/etc. there is no $crlf in %variable (that I can possibly see).

So is there simply a way to remove it from the copied text?

I have tried $remove using $chr(10), $chr(13), $chr($crlf), etc.

Nothing works. I get the text that I want copied to the clipboard fine, its just the annoying $crlf appended to it that I need removed.