diff options
Diffstat (limited to 'make/run-cc.pl')
-rwxr-xr-x | make/run-cc.pl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/make/run-cc.pl b/make/run-cc.pl index d4c976982..7ea2f39d0 100755 --- a/make/run-cc.pl +++ b/make/run-cc.pl @@ -138,6 +138,16 @@ if ($pid) { # Now read each line of stderr LINE: while (defined(my $line = <$r_stderr>)) { chomp $line; + + # someone come up with a better way of doing this, it cant go in message filters as message filters + # cant do straight-out replace. + # + # The order of these replacements is IMPORTANT. DO NOT REORDER THEM. + + $line =~ s/std\:\:basic_string\<char\, std\:\:char_traits\<char\>, std::allocator\<char\> \>(\s+|)/std::string/g; + $line =~ s/std\:\:basic_string\<char\, .*?irc_char_traits\<char\>, std::allocator\<char\> \>(\s+|)/irc::string/g; + $line =~ s/std\:\:deque\<(\S+)\, std::allocator\<\S+\> \>/std::deque<$1>/g; + for my $filter (@msgfilters) { my @caps; if (@caps = ($line =~ $filter->[0])) { |