aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-03-24 12:29:31 +1300
committerDavid Phillips <david@sighup.nz>2017-03-24 12:29:31 +1300
commit026c631ae87e03ee6395f45fe4c47165fa1e6d75 (patch)
tree69cd56b8c10c4a17fe7652bd306564b905dcb7a6
parent28cd332aa9778f95f8965599d12cbbc252c4424a (diff)
downloadidalius-026c631ae87e03ee6395f45fe4c47165fa1e6d75.tar.xz
Re-read config file before reconnection
-rwxr-xr-xidalius.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/idalius.pl b/idalius.pl
index e620ff7..fe195dc 100755
--- a/idalius.pl
+++ b/idalius.pl
@@ -9,7 +9,8 @@ use POE::Component::IRC;
use POE::Component::IRC::Plugin::NickServID;
use sb_config;
-my %config = sb_config::parse_config('bot.conf');
+my $config_file = "bot.conf";
+my %config = sb_config::parse_config($config_file);
my $current_nick = $config{nick};
@@ -174,6 +175,7 @@ sub irc_msg {
}
sub irc_disconnected {
+ %config = sb_config::parse_config($config_file);
$irc->yield(connect => { });
}