Translate std::string, irc::string and std::deque to more readable forms in error messages. I'll do others as need be and as i notice them.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9116 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2008-03-17 17:02:47 +00:00
parent e7a7bc7bd2
commit ab4e56b784

View File

@ -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])) {