mIRC Home    About    Download    Register    News    Help

Print Thread
/strip is broken when used on multiple controls. #269741 04/01/22 06:19 AM
Joined: Feb 2011
Posts: 403
K
KindOne Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
K
Joined: Feb 2011
Posts: 403
While testing the new strikethrough text I discovered the /strip is not working correctly in v7.0 and newer.

(I'm using a Windows 7 computer, ignore the "Vista" in the 6.35)

Code
//clear | echo -ag $os $version $beta | strip -buric | strip +buric | strip +buri-c | strip +bu-ric | strip +b-uric


...

Vista 6.35
* Stripping is off
* Stripping: Bold, Underline, Reverse, Color
* Stripping: Bold, Underline, Reverse
* Stripping: Bold, Underline
* Stripping: Bold
...

7 7.0 beta16
* Stripping is off
* Stripping: Color, Bold, Underline, Reverse, Italic
* Stripping: Bold, Underline, Reverse, Italic
* Stripping is off
* Stripping is off
...

7 7.67 1163
* Stripping is off
* Stripping: Color, Bold, Underline, Strike, Reverse, Italic
* Stripping: Bold, Underline, Strike, Reverse, Italic
* Stripping is off
* Stripping is off
...

And another test:

Code
//echo -ag $os $version $beta | strip -bcusri | strip +c | strip +b


...

Vista 6.35

* Stripping is off
* Stripping: Color
* Stripping: Bold, Color

...

7 7.0 beta16
* Stripping is off
* Stripping: Color
* Stripping: Color, Bold, Underline, Reverse, Italic

...

7 7.67 1163
* Stripping is off
* Stripping: Color
* Stripping: Color, Bold, Underline, Strike, Reverse, Italic

...


irc.swiftirc.net #msl (mIRC Scripting Language)
Re: /strip is broken when used on multiple controls. [Re: KindOne] #269742 04/01/22 06:54 AM
Joined: Dec 2002
Posts: 5,103
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,103
Thanks for your bug report. The reason for this is that the /strip command represents the setting in the Options/Messages dialog which allows you to strip "color" or "other" codes. This was broken in v6.35 and was fixed in later versions.

Re: /strip is broken when used on multiple controls. [Re: Khaled] #269743 04/01/22 06:59 AM
Joined: Feb 2011
Posts: 403
K
KindOne Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
K
Joined: Feb 2011
Posts: 403
I did not even think about checking the Options/Messages dialog.

P.S.: Thanks for the strikethough.


irc.swiftirc.net #msl (mIRC Scripting Language)