From 14bd999ada56e20ffc355ef32d7a8a0bbf9d1032 Mon Sep 17 00:00:00 2001 From: William Heimbigner Date: Tue, 26 Jun 2007 09:17:21 +0000 Subject: new commands, users, hilights, rules, bugfixes, and all sorts of other good stuff --- modules/util.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/util.pl') diff --git a/modules/util.pl b/modules/util.pl index 060eee0..fb10356 100644 --- a/modules/util.pl +++ b/modules/util.pl @@ -6,7 +6,7 @@ use strict; my %sf; my %oq; -my %RISKS = +%::RISKS = ( 'debug' => 10, 'info' => 20, @@ -91,8 +91,8 @@ sub getAlert { my ($c, $risk, $t) = @_; @_ = (); $c = lc $c; - foreach my $prisk ( keys %RISKS) { - if ( $RISKS{$risk} >= $RISKS{$prisk} ) { + foreach my $prisk ( keys %::RISKS) { + if ( $::RISKS{$risk} >= $::RISKS{$prisk} ) { push( @_, @{$::channels->{channel}->{master}->{$t}->{$prisk}} ) if defined $::channels->{channel}->{master}->{$t}->{$prisk}; push( @_, @{cs($c)->{$t}->{$prisk}} ) if defined cs($c)->{$t}->{$prisk}; } -- cgit v1.2.3