summaryrefslogtreecommitdiffstats
path: root/config-default
diff options
context:
space:
mode:
authorLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2007-07-03 23:26:43 +0000
committerLibravatarWilliam Heimbigner <william.heimbigner@gmail.com>2007-07-03 23:26:43 +0000
commit6fe4d3ecbdc3196c7c62b9b7e00d5063bd0dbee9 (patch)
tree2804867a892bf9d6bb3c231b02938896accb5b91 /config-default
parentf52c9bd6e6e018ff0c45f1dea4ded2aeb4ae1427 (diff)
code optimizations, rehash bugfix, lots of cleanup, new hilights, removed some old rules, added and improved some new rules
Diffstat (limited to 'config-default')
-rw-r--r--config-default/channels.xml30
-rw-r--r--config-default/commands.xml16
-rw-r--r--config-default/settings.xml4
3 files changed, 35 insertions, 15 deletions
diff --git a/config-default/channels.xml b/config-default/channels.xml
index 9cefb35..035fcd4 100644
--- a/config-default/channels.xml
+++ b/config-default/channels.xml
@@ -38,7 +38,9 @@
<opalert>numist</opalert>
<opalert>PhilKC</opalert>
</hilights>
- <msgs opalert="##linux-ops" />
+ <msgs>
+ <opalert>##linux-ops</opalert>
+ </msgs>
</channel>
<channel id="##windows" op="no">
<hilights>
@@ -63,6 +65,11 @@
<debug>newmanbe</debug>
</hilights>
</channel>
+ <channel id="#wikimedia" op="no">
+ <msgs>
+ <low>#wikimedia-ops</low>
+ </msgs>
+ </channel>
<channel id="#wikimedia-commons" op="no">
<hilights>
<debug>White_cat</debug>
@@ -102,12 +109,16 @@
<low>stylus</low>
<low>Martinp23</low>
<low>Soms</low>
+ <low>Daniel-Bryant</low>
+ <low>amidaniel</low>
+ <low>Gracenotes</low>
+ <low>SWATJester</low>
</hilights>
<msgs>
<debug>#wikimedia-ops</debug>
</msgs>
</channel>
- <channel id="#wikipedia-en" op="no">
+ <channel id="#wikipedia-en" op="yes">
<hilights>
<debug>White_Cat</debug>
<low>AppleBoy</low>
@@ -142,7 +153,12 @@
<debug>#wikimedia-ops</debug>
</msgs>
</channel>
- <channel id="default" op="yes">
+ <channel id="#wikipedia-social" op="no">
+ <msgs>
+ <low>#wikimedia-ops</low>
+ </msgs>
+ </channel>
+ <channel id="default" op="no">
<event id="flood-15to45" action="none" class="floodqueue" reason="flooding 15 to 45" risk="low" time="0" type="public">15:45</event>
</channel>
<channel id="master">
@@ -152,7 +168,7 @@
<event id="dcc" action="ban" class="re" override="dcc-medium" reason="using the DC.C SE.ND exploit" risk="high" time="0" type="public">^DCC SEND |\bDCC SEND &quot;?[A-Za-z0-9]+&quot;? \d+ \d+ \d+</event>
<event id="dcc-medium" action="ban" class="re" reason="using the DC.C SE.ND exploit" risk="medium" time="0" type="public">DCC SEND </event>
<event id="dcc-topic" action="ban" class="re" reason="setting a bad topic" risk="medium" time="0" type="topic">\bDCC SEND </event>
- <event id="ddos_countdown" action="none" class="re" reasion="doing the ddos countdown thing" risk="medium" time="0" type="public">^... DDOS COUNTDOWN ...$</event>
+ <event id="ddos_countdown" action="none" class="re" reason="doing the ddos countdown thing" risk="medium" time="0" type="public">^... DDOS COUNTDOWN.*</event>
<event id="dosrequest" action="none" class="re" reason="requesting a DoS" risk="medium" time="0" type="public">via paypal if you DoS somone for</event>
<event id="dronebl" action="ban" class="dnsbl" override="ahbl" reason="in dnsbl.dronebl.org" risk="info" time="0" type="join">dnsbl.dronebl.org</event>
<event id="efnet_rbl" action="none" class="dnsbl" reason="in rbl.efnet.org" risk="info" time="0" type="join">rbl.efnet.org</event>
@@ -167,16 +183,16 @@
<event id="last_measure_regex" action="kban" class="re" reason="posting what appears to be a last measure link" risk="medium" time="0" type="public">http://\S+\.on\.nimp\.org</event>
<event id="lesbian" action="ban" class="re" reason="bad nick match (lesbian..)" risk="medium" time="0" type="join">^lesbian..$</event>
<event id="magical" action="none" class="ident" reason="typical w00t ident" risk="info" time="0" type="join">i=magical</event>
- <event id="massflood" action="ban" class="splitflood" reason="distributed flooding" risk="medium" time="0" type="public,part,caction">5:3</event>
+ <event id="massflood" action="ban" class="splitflood" reason="distributed flooding" risk="high" time="0" type="public,part,caction">5:3</event>
<event id="massflood2" action="ban" class="splitflood" reason="distributed flooding" risk="medium" time="0" type="caction">5:3</event>
- <event id="nick_cupid" action="ban" class="re" reason="bad nick match (cupid..)" risk="medium" time="0" type="join">^cupid..$</event>
- <event id="nick_mudkip" action="ban" class="re" reason="bad nick match (mudkip..)" risk="medium" time="0" type="join">MUDKIP..</event>
<event id="nickspam" action="ban" class="nickspam" reason="nickspamming" risk="high" time="0" type="public">150:20</event>
<event id="notice" action="ban" class="re" reason="sending a notice to the channel" risk="high" time="0" type="notice">.*</event>
<event id="redarmyoflol" action="ban" class="re" reason="parting with 'red army of lol'" risk="low" time="0" type="part">RED ARMY OF LOL</event>
<event id="sms_spam" action="none" class="re" reason="spam link / virus" risk="low" time="0" type="public">\.com/sms.exe</event>
<event id="weirdspam_1" action="none" class="re" reason="wwe mass murderer nonsense" risk="medium" time="0" type="public">hello sir, my name is Chris Benoit and I am a WWE MASS MURDERER.</event>
<event id="wikifags2" action="none" class="re" nocase="nocase" reason="saying 'sure are a lot of wikifag'..." risk="low" time="0" type="public">sure are a ?lot of wikifag</event>
+ <event id="dcc-part" action="ban" class="re" reason="using the DC.C SE.ND exploit in a part message" risk="high" time="0" type="part">DCC SEND </event>
+ <event id="levenflood" action="none" class="levenflood" reason="levenshtein flood match" risk="debug" time="0" type="public" override="flood-5to3">contentisuseless</event>
<hilights>
<debug>AfterDeath</debug>
</hilights>
diff --git a/config-default/commands.xml b/config-default/commands.xml
index 6b36aa4..5e5f9e8 100644
--- a/config-default/commands.xml
+++ b/config-default/commands.xml
@@ -162,7 +162,7 @@
</command>
<command cmd="^;rehash$" flag="a">
<![CDATA[
- readXML();
+ ASM::XML->readXML();
$conn->privmsg($event->{to}->[0], 'config files were re-read');
]]>
</command>
@@ -178,21 +178,25 @@
</command>
<command cmd="^;exempt (.*)" flag="o">
<![CDATA[
- push(@::eline, $1);
- "$1\n" >> io 'exempt.txt';
- $conn->privmsg($event->{to}->[0], "$1 exempted");
+ $::eline{lc $1} = 1;
+ "lc $1\n" >> io 'exempt.txt';
+ $conn->privmsg($event->{to}->[0], "lc $1 exempted");
]]>
</command>
<command cmd="^\!ops *(.*)">
<![CDATA[
- my $hilite=commaAndify(getAlert($event->{to}->[0], 'opalert', 'hilights'));
- $conn->privmsg($_, "$hilite: $event->{nick} wants your attention ($1) ") foreach getAlert($event->{to}->[0], 'opalert', 'msgs');
+ my $hilite=ASM::Util->commaAndify(ASM::Util->getAlert($event->{to}->[0], 'opalert', 'hilights'));
+ $conn->privmsg($_, "$hilite: $event->{nick} wants your attention ($1) ") foreach ASM::Util->getAlert($event->{to}->[0], '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>
</commands>
diff --git a/config-default/settings.xml b/config-default/settings.xml
index f90dde6..cb9e554 100644
--- a/config-default/settings.xml
+++ b/config-default/settings.xml
@@ -20,8 +20,8 @@
<autojoin>#wikimedia-commons-social</autojoin>
</autojoins>
<log>
- <dir>logs/$chan</dir>
- <filefmt>$chan-%m-%d-%Y.log</filefmt>
+ <dir>logs/</dir>
+ <filefmt>-%m-%d-%Y.log</filefmt>
<timefmt>%B %d %T </timefmt>
<zone>GMT</zone>
</log>