mirror of
https://github.com/brmlab/brmdoor.git
synced 2025-06-07 19:24:01 +02:00
sanitise newlines
This commit is contained in:
parent
f057156b42
commit
ced66e2f11
1 changed files with 3 additions and 2 deletions
|
@ -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" );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue