summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2008-12-24 19:35:56 +0000
committerLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2008-12-24 19:35:56 +0000
commite4c6433ef30c7dc3d2734b204e8f8d0510584a79 (patch)
tree2c0a965888b2f4abea634659ab990fd22a393573
parent3a86ba4432291bb327f0e07034c856e1c3caab1d (diff)
fixed ;rehash so it will also rehash the string blacklist; moved ;rehash exempts into ;rehash
-rw-r--r--config-default/commands.xml19
1 files changed, 9 insertions, 10 deletions
diff --git a/config-default/commands.xml b/config-default/commands.xml
index efe65e1..f9abcc5 100644
--- a/config-default/commands.xml
+++ b/config-default/commands.xml
@@ -241,6 +241,15 @@
<command cmd="^;rehash$" flag="a">
<![CDATA[
ASM::XML->readXML();
+ my @strbl = io('string_blacklist.txt')->getlines;
+ chomp @strbl;
+ @::string_blacklist = @strbl;
+ my @eline=io('exempt.txt')->getlines;
+ chomp @eline;
+ %::eline = ();
+ foreach my $item (@eline) {
+ $::eline{lc $item} = 1;
+ }
$conn->privmsg($event->{to}->[0], 'config files were re-read');
]]>
</command>
@@ -272,16 +281,6 @@
$conn->privmsg($_, "[\x02$tgt\x02] - $event->{nick} wants op attention ($msg) $hilite") foreach ASM::Util->getAlert($tgt, 'opalert', 'msgs');
]]>
</command>
- <command cmd="^;re(load|hash) exempts" flag="a">
- <![CDATA[
- @eline=io('exempt.txt')->getlines;
- chomp @eline;
- %::eline = ();
- foreach my $item (@eline) {
- $::eline{lc $item} = 1;
- }
- ]]>
- </command>
<command cmd="^;blacklist (.*)" flag="o">
<![CDATA[
my $str = lc $1;