Changeset 889 for lang/perl/irssi

Show
Ignore:
Timestamp:
10/30/07 15:05:51 (6 years ago)
Author:
yappo
Message:

r1415@haruna: ko | 2007-10-29 23:46:24 +0900
lang/perl/irssi/scripts/mobirc.pl: overtaken #850

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/irssi/scripts/mobirc.pl

    r888 r889  
    8585                    $poe->heap->{channel_name}->{ $canon_name } = $c->{name}; 
    8686                    $poe->heap->{channel_topic}->{ $canon_name } = $c->{topic}; 
     87                } 
     88                my $poe = sweet_args; 
     89  
     90                for my $c ( map { $_->{name} } Irssi::channels() ) { 
     91                    add_message( $poe, 
     92                        decode( $poe->heap->{config}->{irc}->{incode}, canon_name($c) ), 
     93                        undef, decode('utf8', 'Connected to irc server!'), 'connect' ); 
     94 
     95                    $poe->heap->{channel_name}->{ canon_name($c) } = $c; 
     96                    $poe->heap->{channel_topics}->{ canon_name($c) } = $c; 
    8797                } 
    8898            },