X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FApp%2FFonBot%2FPlugin%2FConfig.pm;h=877bf29ba2d9891cef1aea2347962c271e1439fe;hb=b8d4a54731323949ef92a5300862476fc712f215;hp=2418f779e9c97b3f7347cca01b156b8ae23e4c4c;hpb=962dff7b76ec32cd68e0e96b8d3cc6d1f9759d00;p=app-fonbot-daemon.git diff --git a/lib/App/FonBot/Plugin/Config.pm b/lib/App/FonBot/Plugin/Config.pm index 2418f77..877bf29 100644 --- a/lib/App/FonBot/Plugin/Config.pm +++ b/lib/App/FonBot/Plugin/Config.pm @@ -1,6 +1,6 @@ package App::FonBot::Plugin::Config; -our $VERSION = '0.000_3'; +our $VERSION = '0.001'; use v5.14; use strict; @@ -11,13 +11,15 @@ use parent qw/Exporter/; use Apache2::Authen::Passphrase; use Log::Log4perl qw//; -our @EXPORT_OK=qw/$oftc_enabled $oftc_nick @oftc_channels $oftc_nickserv_password $bitlbee_enabled $bitlbee_nick $bitlbee_server $bitlbee_port $bitlbee_password $dir $user $group @supplementary_groups $httpd_port/; +our @EXPORT_OK=qw/$oftc_enabled $oftc_nick @oftc_channels $oftc_nickserv_password $bitlbee_enabled $bitlbee_nick $bitlbee_server $bitlbee_port $bitlbee_password $dir $user $group @supplementary_groups $httpd_port $email_batch_seconds $email_from $email_subject/; ################################################## our ($oftc_enabled, $oftc_nick, @oftc_channels, $oftc_nickserv_password); our ($bitlbee_enabled, $bitlbee_nick, $bitlbee_server, $bitlbee_port, $bitlbee_password); our ($dir, $user, $group, @supplementary_groups); +our ($httpd_port); +our ($email_batch_seconds, $email_from, $email_subject); ################################################## @@ -71,6 +73,11 @@ App::FonBot::Plugin::Config - FonBot plugin for reading configuration files # Variables used in App::FonBot::Plugin::HTTPD say "The HTTPD listens on port $httpd_port" + # Variables used in App::FonBot::Plugin::Email + say "The email batch delay is $email_batch_seconds"; + say "The email plugin sends emails from $email_from"; + say "The email plugin sends emails with subject $email_subject"; + =head1 DESCRIPTION This FonBot plugin reads a configuration file (hardcoded to F) and provides configuration variables to the other plugins. It is a required plugin, since all other plugins depend on it. @@ -97,7 +104,7 @@ Marius Gavrilescu C<< >> =head1 COPYRIGHT AND LICENSE -Copyright 2013 Marius Gavrilescu +Copyright 2013-2015 Marius Gavrilescu This file is part of fonbotd.