From 4a9b533d9a19074f1dfba918f4f991ae8d7a2ead Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Wed, 14 Jan 2009 13:33:07 +0000 Subject: [PATCH] Delete of the at definition in the at command is possible now git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@331 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/90_at.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FHEM/90_at.pm b/FHEM/90_at.pm index cbb2c6685..d31d91780 100755 --- a/FHEM/90_at.pm +++ b/FHEM/90_at.pm @@ -93,7 +93,7 @@ at_Exec($) my ($name) = @_; my ($skip, $disable); - return if(!$defs{$name}{DEF}); # Just deleted + return if(!$defs{$name}); # Just deleted if(defined($attr{$name})) { $skip = 1 if($attr{$name} && $attr{$name}{skip_next}); @@ -105,6 +105,8 @@ at_Exec($) $command = SemicolonEscape($command); AnalyzeCommandChain(undef, $command) if(!$skip && !$disable); + return if(!$defs{$name}); # Deleted in the Command + my $count = $defs{$name}{REP}; my $def = $defs{$name}{DEF};