Show
Ignore:
Timestamp:
06/18/08 18:46:13 (5 months ago)
Author:
tokuhirom
Message:

refactoring

Files:
1 modified

Legend:

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

    r14213 r14216  
    131131sub bot_connected { 
    132132    my ( $kernel, $heap ) = @_[ KERNEL, HEAP ]; 
     133 
     134    $heap->{irc}->yield( charset => $heap->{plugin}->charset ); 
     135 
    133136    foreach ( @{ $heap->{plugin}->channels } ) { 
    134137        msg "joining channel $_"; 
    135138        $heap->{irc}->yield( 'join' => $_ ); 
    136         if ( my $charset = $heap->{plugin}->charset ) { 
    137             $heap->{irc}->yield( charset => $charset ); 
    138         } 
    139139    } 
    140140}