Permalink
Browse files

Save a few characters by using an elipsis in elided text

  • Loading branch information...
semifor committed May 5, 2012
1 parent a94f22a commit 11f4d717e2825f46408b7b56c41c1f32f45f2fb8
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/POE/Component/Server/Twirc.pm
@@ -6,7 +6,7 @@ use LWP::UserAgent::POE;
use POE qw(Component::Server::IRC);
use Net::Twitter;
use Email::Valid;
-use String::Truncate qw/elide/;
+use String::Truncate elide => { marker => '' };
use POE::Component::Server::Twirc::LogAppender;
use POE::Component::Server::Twirc::State;
use Encode qw/decode/;
@@ -972,7 +972,8 @@ sub _favorite_or_retweet {
my $link = "https://twitter.com/$$status{user}{screen_name}/status/$$status{id}";
my $text = $self->formatted_status_text($status);
- $self->bot_notice($self->irc_channel, elide(qq/$who $verb $whom "$text"/, 80) . " [$link]");
+ $self->bot_notice($self->irc_channel,
+ elide(qq/$who $verb $whom "$text"/, 80, { marker => '…"' }) . " [$link]");
}
sub on_event_block {

0 comments on commit 11f4d71

Please sign in to comment.