diff options
| author | 2008-12-23 13:45:20 +0000 | |
|---|---|---|
| committer | 2008-12-23 13:45:20 +0000 | |
| commit | 17144559e710c7b833ec796deda3dbc4ff4e3abe (patch) | |
| tree | 70ff01c8a081788af4f5e89d8a1d21b2802663b2 /config-default | |
| parent | b81a98e949f375e066c88406ca9626a391244323 (diff) | |
cleaned up channels.xml and tweaked the hilight command
Diffstat (limited to 'config-default')
| -rw-r--r-- | config-default/channels.xml | 30 | ||||
| -rw-r--r-- | config-default/commands.xml | 5 |
2 files changed, 23 insertions, 12 deletions
diff --git a/config-default/channels.xml b/config-default/channels.xml index a0c7ca3..c4257ce 100644 --- a/config-default/channels.xml +++ b/config-default/channels.xml @@ -3,9 +3,17 @@ <hilights></hilights> </channel> <channel id="##asb-nexus" op="when"> - <hilights></hilights> + <hilights> + </hilights> <msgs></msgs> </channel> + <channel id="##asb-test" op="no"> + <hilights></hilights> + <msgs> + <debug>##asb-test</debug> + <disable>##asb-nexus</disable> + </msgs> + </channel> <channel id="##asb-testing" op="when" silence="yes"> <hilights> <disable>ST47</disable> @@ -76,8 +84,9 @@ <msgs></msgs> </channel> <channel id="##windows" op="no"> - <hilights none="ST47"> + <hilights> <disable>ST47</disable> + <disable>Thehelpfulone</disable> <info>njan</info> <low>numist</low> <low>quux</low> @@ -147,6 +156,7 @@ <high>DLange</high> <high>RichiH</high> </hilights> + <msgs></msgs> </channel> <channel id="#mediawiki" op="no" silence="yes"> <hilights> @@ -172,6 +182,7 @@ <debug>Martinp23</debug> <debug>Warpath</debug> <debug>Rjd0060</debug> + <debug>AfterDeath</debug> <low>Majorly</low> <low>Fabexplosive</low> </hilights> @@ -189,25 +200,20 @@ <debug>#wikimedia-ops</debug> </msgs> </channel> - <channel id="#wikimedia-commons-social" op="no" silence="yes"> - <hilights> - <low>Lcarsdata</low> - </hilights> - <msgs> - <debug>#wikimedia-ops</debug> - </msgs> - </channel> <channel id="#wikimedia-ops" op="no"> <hilights> <debug>Cbrown1023</debug> </hilights> <msgs> - <debug>##wikimedia-ops</debug> + <debug>#wikimedia-ops</debug> + <low>#wikimedia-ops</low> </msgs> </channel> <channel id="#wikimedia-tech" op="no" silence="yes"> <hilights></hilights> - <msgs></msgs> + <msgs> + <low>#wikimedia-ops</low> + </msgs> </channel> <channel id="#wikipedia" op="no" silence="yes"> <hilights> diff --git a/config-default/commands.xml b/config-default/commands.xml index 499b931..2e8df3d 100644 --- a/config-default/commands.xml +++ b/config-default/commands.xml @@ -153,6 +153,11 @@ my $nick = $2; my $level= $3; if ($level eq '') { $level = 'low'; } + $level = lc $level; + if ($level !~ /^(disable|debug|low|medium|high|opalert)$/) { + $conn->privmsg($event->{to}->[0], "Error: I don't recognize $level as a valid level."); + return; + } my $link = ASM::Util->getLink(lc $chan); if ( lc $link ne lc $chan ) { $conn->privmsg($event->{to}->[0], "Error: $chan is linked to $link - use $link instead."); |
