aboutsummaryrefslogtreecommitdiff
path: root/Plugin/Autojoin.pm
blob: 4288c425179dfad6f0e6d54ef3974b7732869e37 (plain)
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;