From 17144559e710c7b833ec796deda3dbc4ff4e3abe Mon Sep 17 00:00:00 2001 From: William Heimbigner Date: Tue, 23 Dec 2008 13:45:20 +0000 Subject: cleaned up channels.xml and tweaked the hilight command --- config-default/channels.xml | 30 ++++++++++++++++++------------ 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 @@ - + + + + + + ##asb-test + ##asb-nexus + + ST47 @@ -76,8 +84,9 @@ - + ST47 + Thehelpfulone njan numist quux @@ -147,6 +156,7 @@ DLange RichiH + @@ -172,6 +182,7 @@ Martinp23 Warpath Rjd0060 + AfterDeath Majorly Fabexplosive @@ -189,25 +200,20 @@ #wikimedia-ops - - - Lcarsdata - - - #wikimedia-ops - - Cbrown1023 - ##wikimedia-ops + #wikimedia-ops + #wikimedia-ops - + + #wikimedia-ops + 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."); -- cgit v1.2.3