From e0f37c7d56edafcd0ec3aa064fdf2cea95d77ef9 Mon Sep 17 00:00:00 2001 From: Neil Moore Date: Fri, 6 Apr 2012 10:12:53 -0500 Subject: Specify max message length. This requires a patched Bot::BasicBot, but should avoid splitting messages quite as often. The new limit of 410 bytes should leave plenty of room (102 bytes) for the channel name etc. --- lib/Crawl/Bot.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Crawl/Bot.pm b/lib/Crawl/Bot.pm index 3f5ecd1..0ddf57e 100644 --- a/lib/Crawl/Bot.pm +++ b/lib/Crawl/Bot.pm @@ -39,6 +39,12 @@ has plugins => ( default => sub { [__PACKAGE__->create_plugins(bot => shift)] }, ); +has max_length => ( + is => 'ro', + isa => 'Int', + default => 410 +); + sub BUILD { my $self = shift; File::Path::mkpath($self->data_dir); -- cgit v1.2.3-54-g00ecf