diff options
| author | 2007-06-26 09:17:21 +0000 | |
|---|---|---|
| committer | 2007-06-26 09:17:21 +0000 | |
| commit | 14bd999ada56e20ffc355ef32d7a8a0bbf9d1032 (patch) | |
| tree | 05e8351b5dca645e6fd6eaf86db5813227af4083 /modules/util.pl | |
| parent | 7e08e2e87e3de903b8810a0bd357a45a65cc3b49 (diff) | |
new commands, users, hilights, rules, bugfixes, and all sorts of other good stuff
Diffstat (limited to 'modules/util.pl')
| -rw-r--r-- | modules/util.pl | 6 |
1 files changed, 3 insertions, 3 deletions
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}; } |
