summaryrefslogtreecommitdiff
path: root/lib/Multi/IRC.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-08-12 09:31:20 +0200
committerYorhel <git@yorhel.nl>2009-08-12 09:31:20 +0200
commit0a803dfa255cdcd62e6801a285b41717a28e6f51 (patch)
treee59cc445fafb4bc5cbbc20cf6470ad740c7422c5 /lib/Multi/IRC.pm
parent7ef3e2cf9166dca22d9cf9d1c19367540cbe99c2 (diff)
Multi::IRC: Properly handle newlines in edit summaries
Diffstat (limited to 'lib/Multi/IRC.pm')
-rw-r--r--lib/Multi/IRC.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Multi/IRC.pm b/lib/Multi/IRC.pm
index 9610e192..b84c3d4a 100644
--- a/lib/Multi/IRC.pm
+++ b/lib/Multi/IRC.pm
@@ -561,6 +561,7 @@ sub formatid {
push @msg, RED.'By'.NORMAL.' '.$_->{username} if $_->{username};
# (only if comments key is present) Summary:
+ $_->{comments} =~ s/\n/ /g if $_->{comments};
push @msg, RED.'Summary:'.NORMAL.' '.(
length $_->{comments} > 40 ? substr($_->{comments}, 0, 37).'...' : $_->{comments}
) if defined $_->{comments};