my %chan_data = ();
foreach my $channel (@join_channels) {
# based on the current configuration, each channel can only be joined by one bot session
- $irc->yield( join => $channel );
+ my $channel_password = config_get_key3('channels', $channel, 'password');
+ if (defined($channel_password) and length($channel_password) > 0) {
+ $irc->yield( join => $channel, $channel_password );
+ } else {
+ $irc->yield( join => $channel );
+ }
$chan_data{$channel} = {};
}
$heap->{'chan_data_' . $session} = \%chan_data;
- extra channel
- track each channel message and see, if the bot was mentioned
- Log::Log4perl?
-- channel passwords
- nickserv handling (passwords)
- verify channel list from time to time, autojoin missing channels
- implement --help OK
- verify existence of required tables at startup OK
- move translations to a separate file OK
+- channel passwords OK