Permalink
Browse files

Fix up a git desync

  • Loading branch information...
1 parent 9e58794 commit aa491de5a18e80f215797974959aa4c7e0598c59 @TiMBuS committed Aug 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Net/IRC/Event.pm
View
@@ -20,9 +20,9 @@ class Net::IRC::Event {
#I'm going with 480, as 510 seems to get cut off on some servers.
my $prepend = "PRIVMSG $to :";
- my $maxlen = 480-$prepend.bytes;
+ my $maxlen = 480-$prepend.encode.bytes;
for $text.split(/\c13?\c10/) -> $line is rw {
- while $line.bytes > $maxlen {
+ while $line.encode.bytes > $maxlen {
#Break up the line using a nearby space if possible.
my $index = $line.rindex(" ", $maxlen) || $maxlen;
$.conn.sendln($prepend~$line.substr(0, $index));

0 comments on commit aa491de

Please sign in to comment.