Changeset 855
- Timestamp:
- 10/29/07 23:49:19 (13 months ago)
- Files:
-
- 1 modified
-
lang/perl/irssi/scripts/mobirc.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/irssi/scripts/mobirc.pl
r849 r855 41 41 my $poe = sweet_args; 42 42 my $session_id = $poe->session->ID; 43 44 my $channel_names = {};45 my $channel_topics = {};46 47 for my $c ( map { $_->{name} } Irssi::channels() ) {48 $channel_names->{ canon_name($c) } = $c;49 $channel_topics->{ canon_name($c) } = $c;50 }51 43 52 44 my $conffname = Irssi::settings_get_str('mobirc_config_path'); … … 69 61 _start => sub { 70 62 $_[KERNEL]->alias_set('irc_session'); # create dummy irc_session 63 my $poe = sweet_args; 64 65 for my $c ( map { $_->{name} } Irssi::channels() ) { 66 add_message( $poe, 67 decode( $poe->heap->{config}->{irc}->{incode}, canon_name($c) ), 68 undef, decode('utf8', 'Connected to irc server!'), 'connect' ); 69 70 $poe->heap->{channel_name}->{ canon_name($c) } = $c; 71 $poe->heap->{channel_topics}->{ canon_name($c) } = $c; 72 } 71 73 }, 72 74 }, … … 76 78 channel_topic => {}, 77 79 channel_mtime => {}, 78 channel_name => $channel_names,79 channel_topic => $channel_topics,80 channel_name => {}, 81 channel_topic => {}, 80 82 config => $config, 81 83 irc => bless({}, __PACKAGE__),
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)