From 5386df0e3f70dbbe16ed9dcd82b954e9dc2ad268 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 16 Feb 2012 23:15:28 -0600 Subject: get rid of newlines in messages we send --- lib/Bot/Flowdock/IRC.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Bot/Flowdock/IRC.pm b/lib/Bot/Flowdock/IRC.pm index 72973d5..7b199e1 100644 --- a/lib/Bot/Flowdock/IRC.pm +++ b/lib/Bot/Flowdock/IRC.pm @@ -267,9 +267,12 @@ sub _say_to_channel { $body = "-!- $body"; } + $body =~ s/\n/ /g; + $body = elide($body, 275, { at_space => 1 }); + $self->say( channel => ($self->channels)[0], - body => elide($body, 350, { at_space => 1 }), + body => $body, ); } -- cgit v1.2.3