ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Net-IRC3/lib/Net/IRC3/Util.pm
(Generate patch)

Comparing Net-IRC3/lib/Net/IRC3/Util.pm (file contents):
Revision 1.13 by elmex, Sat Aug 18 12:39:02 2007 UTC vs.
Revision 1.14 by elmex, Sat Aug 18 12:40:04 2007 UTC

226Unfortunately the mIRC color coding will destroy improper colored numbers. So this 226Unfortunately the mIRC color coding will destroy improper colored numbers. So this
227function may destroy the message in some occasions a bit. 227function may destroy the message in some occasions a bit.
228 228
229=cut 229=cut
230 230
231sub filter_colors { 231sub filter_colors($) {
232 my ($line) = @_; 232 my ($line) = @_;
233 $line =~ s/\x1B\[.*?[\x00-\x1F\x40-\x7E]//g; # see ECMA-48 + advice by urxvt author 233 $line =~ s/\x1B\[.*?[\x00-\x1F\x40-\x7E]//g; # see ECMA-48 + advice by urxvt author
234 $line =~ s/\x03\d\d?(?:,\d\d?)?//g; # see http://www.mirc.co.uk/help/color.txt 234 $line =~ s/\x03\d\d?(?:,\d\d?)?//g; # see http://www.mirc.co.uk/help/color.txt
235 $line 235 $line
236} 236}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines