X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=make%2Frun-cc.pl;h=7ea2f39d009b85120a0f4849a4df3f10bfdcbe1c;hb=66e76caaa09f5e7037590030ef14921359407a1a;hp=d4c976982c369004b1244ac577c459c935cdb94a;hpb=82af95f1436cbf2a6dc7fde60a95d40ad88e1a38;p=user%2Fhenk%2Fcode%2Finspircd.git 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\, std::allocator\ \>(\s+|)/std::string/g; + $line =~ s/std\:\:basic_string\, std::allocator\ \>(\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])) {