Show
Ignore:
Timestamp:
06/18/08 19:11:27 (5 months ago)
Author:
tokuhirom
Message:

you can send two or more lines.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/App-Nakanobu/trunk/lib/App/Nakanobu/Plugin/Component/IRCClient.pm

    r14219 r14220  
    8686            $command => $self => sub { 
    8787                my ($self, $context, $channel, $text) = @_; 
    88                 $irc->yield( $command => encode($self->charset, $channel), encode($self->charset, $text) ); 
     88                for my $line (split /\n/, $text) { 
     89                    $irc->yield( $command => encode($self->charset, $channel), encode($self->charset, $line) ); 
     90                } 
    8991            } 
    9092        );