diff options
author | David Phillips <david@sighup.nz> | 2017-03-24 12:29:31 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-03-24 12:29:31 +1300 |
commit | 026c631ae87e03ee6395f45fe4c47165fa1e6d75 (patch) | |
tree | 69cd56b8c10c4a17fe7652bd306564b905dcb7a6 | |
parent | 28cd332aa9778f95f8965599d12cbbc252c4424a (diff) | |
download | idalius-026c631ae87e03ee6395f45fe4c47165fa1e6d75.tar.xz |
Re-read config file before reconnection
-rwxr-xr-x | idalius.pl | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 => { }); } |