summaryrefslogtreecommitdiffstats
path: root/lib/ASM/Event.pm
diff options
context:
space:
mode:
authorLibravatarJanik Kleinhoff <ilbelkyr@shalture.org>2016-03-13 16:27:49 +0000
committerLibravatarJanik Kleinhoff <ilbelkyr@shalture.org>2016-03-13 16:27:49 +0000
commitfbb00b1778c9a58180e8fa960f2a57a79b5ea760 (patch)
tree463408e99085ad98c35fe5f51281bf2667cc89dc /lib/ASM/Event.pm
parent2638f623e8405ffad402e258bdba4f90cf7228de (diff)
BOOM GOES THE XML
This likely introduces twenty new bugs, but on the other hand it avoids twenty thousand other issues (most of them relating to XML::Simple doing the utterly wrong things all the time and configuration merely mitigating the issues, rather than fixing the core problem) so chances are it's more than worth it. We check if there's shiny new JSON-based config in place already; if not, we try to load XML config and convert it to the new format. The old config files are left untouched in case we fucked up somehow.
Diffstat (limited to 'lib/ASM/Event.pm')
-rw-r--r--lib/ASM/Event.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ASM/Event.pm b/lib/ASM/Event.pm
index 005a9d3..1b2a4a2 100644
--- a/lib/ASM/Event.pm
+++ b/lib/ASM/Event.pm
@@ -87,7 +87,7 @@ sub on_pong
$::settingschanged = 0;
} else {
$conn->privmsg($::settings->{masterchan}, "Config files changed, auto rehash triggered. Check console for possible errors.");
- ASM::XML->readXML();
+ ASM::Config->readConfig();
}
}
if ($lag > 1) {