sub {
my( $kernel, $heap, $who, $what, $src, $dest, $replypath ) = @_;
$what =~ s/[[:space:]]+$//;
- if( exists( $heap->{ 'ignored' }->{ $what } ) ) {
+ if( exists( $heap->{ 'ignored' }->{ uc( $what ) } ) ) {
$kernel->post( $src, $replypath, "'$what' is already ignored.", $dest );
return;
}
- $heap->{ 'ignored' }->{ $what } = $who;
+ $heap->{ 'ignored' }->{ uc( $what ) } = $who;
$kernel->post( $src, $replypath, "'$what' is now ignored.", $dest );
DumpFile( "ignored.yaml", $heap->{ 'ignored' } );
}
sub {
my( $kernel, $heap, $who, $what, $src, $dest, $replypath ) = @_;
$what =~ s/[[:space:]]+$//;
- if( exists( $heap->{ 'ignored' }->{ $what } ) ) {
- delete $heap->{ 'ignored' }->{ $what };
+ if( exists( $heap->{ 'ignored' }->{ uc( $what ) } ) ) {
+ delete $heap->{ 'ignored' }->{ uc( $what ) };
$kernel->post( $src, $replypath, "'$what' is no longer ignored.", $dest );
DumpFile( "ignored.yaml", $heap->{ 'ignored' } );
return;
$what =~ s/^[~]//;
my( $cmd, $subj ) = ( split( / /, $what, 2 ) );
$subj = "" unless $subj;
- if( exists( $heap->{ 'ignored' }->{ $who } ) ) {
+ if( exists( $heap->{ 'ignored' }->{ uc( $who ) } ) ) {
print( "CORE:!<$who> $cmd -- $subj\n" ) unless( !exists $Destult::config{ 'DEBUG' } );
return;
}