summaryrefslogtreecommitdiffstats
path: root/modules/xml.pl
diff options
context:
space:
mode:
authorLibravataricxcnika <icxcnika@antispammeta.net>2014-04-22 23:46:10 +0400
committerLibravataricxcnika <icxcnika@antispammeta.net>2014-04-22 23:46:10 +0400
commitac56812a5a79b5187a89cb7dcd9078c11ffed54e (patch)
tree8b0cd4718ec93d76127793c2ee2dc2914253b9c0 /modules/xml.pl
parent02ce9f49538d6a89c6562708a0ac2871b2d46dc3 (diff)
added some things in gitignore,
added connection tx/rx info to status reports, added exit, sync, and ping commands, bot says which channel a restricted person tries to use ops command on, blacklist system is more intelligent (reason, person adding, can be removed), added functionality for working with URLs, automatically retries to join channels that are throttled, make sure we send passwords to NickServ@services., fixed a scheduling loophole that was exploitable, greatly reduced startup warnings due to slow syncing
Diffstat (limited to 'modules/xml.pl')
-rw-r--r--modules/xml.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/xml.pl b/modules/xml.pl
index 551dc3f..a3c6e85 100644
--- a/modules/xml.pl
+++ b/modules/xml.pl
@@ -20,6 +20,7 @@ sub readXML {
$::dnsbl = $::xs1->XMLin( "$p/dnsbl.xml", ForceArray => []);
$::rules = $::xs1->XMLin( "$p/rules.xml", ForceArray => []);
$::restrictions = $::xs1->XMLin( "$p/restrictions.xml", ForceArray => ['host', 'nick', 'account']);
+ $::blacklist = $::xs1->XMLin( "$p/blacklist.xml", ForceArray => 'string');
}
sub writeXML {
@@ -27,6 +28,7 @@ sub writeXML {
writeChannels();
writeUsers();
writeRestrictions();
+ writeBlacklist();
# $::xs1->XMLout($::commands, RootName => 'commands', KeyAttr => ['id']) > io("$::cset/commands.xml");
}
@@ -52,4 +54,9 @@ sub writeRestrictions {
GroupTags => { hosts => "host", nicks => "nick", accounts => "account"}) > io("$::cset/restrictions.xml");
}
+sub writeBlacklist {
+ $::settingschanged=1;
+ $::xs1->XMLout($::blacklist, RootName => 'blacklist', KeyAttr => ['id']) > io("$::cset/blacklist.xml");
+}
+
return 1;