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/commands.xml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config-default/commands.xml') 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