Skip to content

Commit

Permalink
Only use ellipsis when the quote has been trimmed
Browse files Browse the repository at this point in the history
  • Loading branch information
hinrik committed Jun 10, 2011
1 parent d1a8b6d commit 9ad081c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Failo/Identica.pm
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ sub _shift_queue {

# print the error
my ($short) = $quote =~ /(.{0,50})/;
$irc->yield(notice => $chan, "Couldn't post quote '$short…': $stderr");
$short .= '' if length($short) < length($quote);
$irc->yield(notice => $chan, "Couldn't post quote '$short': $stderr");
return;
}

Expand Down

0 comments on commit 9ad081c

Please sign in to comment.