1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
package Plugin::Autojoin; use strict; use warnings; my $config; sub configure { my $self = shift; shift; # cmdref shift; # run_command $config = shift; shift; # root config return $self; } sub on_001_welcome { my ($self, $logger, $server, $message, $irc) = @_; $irc->yield(join => $_) for @{$config->{channels}}; return; } 1;