Bot-BasicBot-Pluggable-Module-Notify
view release on metacpan or search on metacpan
lib/Bot/BasicBot/Pluggable/Module/Notify.pm view on Meta::CPAN
);
}
}
sub _load_notification_file {
my $self = shift;
my $fn = $self->store->get( 'notify', 'notifications' ) or return 0;
return 0 unless(-r $fn); # file must be readable
my $mod = (stat($fn))[9];
return 1 if($mod <= $load_time && keys %emails); # don't reload if not modified
my $fh = IO::File->new($fn,'r') or return 0;
(%settings,%emails) = ();
while(<$fh>) {
s/\s+$//;
next if(/^#/ || /^$/);
my ($nick,$ident,$email) = split(/,/,$_,3);
if($nick eq 'CONFIG') {
( run in 0.992 second using v1.01-cache-2.11-cpan-49f99fa48dc )