From ced66e2f113d629a695dde693a73613285ed87b3 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 22 Jun 2011 18:17:25 +0200 Subject: [PATCH] sanitise newlines --- brmd/brmd.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/brmd/brmd.pl b/brmd/brmd.pl index 6935ce0..8f95f7c 100755 --- a/brmd/brmd.pl +++ b/brmd/brmd.pl @@ -554,9 +554,10 @@ sub irc_public { foreach my $subpod (@{$pod->subpods}) { if ($subpod->plaintext) { my $answer = ''; - $answer .= ($pod->title . ' - ') if $pod->title; - $answer .= ($subpod->title . ' - ') if $subpod->title; + $answer .= ($pod->title . ': ') if $pod->title; + $answer .= ($subpod->title . ': ') if $subpod->title; $answer .= $subpod->plaintext; + $answer =~ s/\n/, /g; $irc->yield( privmsg => $channel => "$nick: $answer" ); } }