summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-02-16 23:15:28 -0600
committerJesse Luehrs <doy@tozt.net>2012-02-16 23:15:28 -0600
commit5386df0e3f70dbbe16ed9dcd82b954e9dc2ad268 (patch)
treebb8307883e08e05b53c35f694a97c97bce4d3cb7
parent56fb1802ddfb11c7e72a33ed18c72d7138c4e611 (diff)
downloadbot-flowdock-irc-5386df0e3f70dbbe16ed9dcd82b954e9dc2ad268.tar.gz
bot-flowdock-irc-5386df0e3f70dbbe16ed9dcd82b954e9dc2ad268.zip
get rid of newlines in messages we sendHEADmaster
-rw-r--r--lib/Bot/Flowdock/IRC.pm5
1 files changed, 4 insertions, 1 deletions
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,
);
}