Bugfix....

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@625 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parix 2010-04-29 20:05:38 +00:00
parent 250a0838a8
commit 09318908d1

View File

@ -12,8 +12,8 @@
# twitter STATUS # twitter STATUS
# Shows status of twitter-command: Twitter:Enabeld MSG-COUNT: 2 ERR-COUNT: 0 # Shows status of twitter-command: Twitter:Enabeld MSG-COUNT: 2 ERR-COUNT: 0
# #
# twitter enable # twitter ENABLE/DISABLE
# Enables twitter-command # Enables/disbales twitter-command
# #
# Twitter Limits # Twitter Limits
# http://help.twitter.com/forums/10711/entries/15364 # http://help.twitter.com/forums/10711/entries/15364
@ -79,10 +79,15 @@ sub Commandtwitter($)
if($msg eq "ENABLE"){ if($msg eq "ENABLE"){
if(defined($data{twitter}{conf}{disabeld})){ if(defined($data{twitter}{conf}{disabeld})){
$status = "Twitter enabled"; $status = "Twitter enabled";
retunr $status; return $status;
} }
return "Twitter already Enabeld"; return "Twitter already Enabeld";
} }
# Disable
if($msg eq "DISABLE"){
$data{twitter}{conf}{disabeld} = 1;
return "Twitter disabeld";
}
#ERROR-Counter #ERROR-Counter
my ($err_cnt,$err_max); my ($err_cnt,$err_max);
if(defined($data{twitter}{error})){ if(defined($data{twitter}{error})){