mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
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:
parent
e7a7bc7bd2
commit
ab4e56b784
@ -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])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user