From 09318908d1f7410ae9812d19a4756d219dd6285a Mon Sep 17 00:00:00 2001 From: parix <> Date: Thu, 29 Apr 2010 20:05:38 +0000 Subject: [PATCH] Bugfix.... git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@625 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- contrib/99_twitter.pm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/contrib/99_twitter.pm b/contrib/99_twitter.pm index 83ea78a9a..3fc88c072 100755 --- a/contrib/99_twitter.pm +++ b/contrib/99_twitter.pm @@ -12,8 +12,8 @@ # twitter STATUS # Shows status of twitter-command: Twitter:Enabeld MSG-COUNT: 2 ERR-COUNT: 0 # -# twitter enable -# Enables twitter-command +# twitter ENABLE/DISABLE +# Enables/disbales twitter-command # # Twitter Limits # http://help.twitter.com/forums/10711/entries/15364 @@ -79,10 +79,15 @@ sub Commandtwitter($) if($msg eq "ENABLE"){ if(defined($data{twitter}{conf}{disabeld})){ $status = "Twitter enabled"; - retunr $status; + return $status; } return "Twitter already Enabeld"; } + # Disable + if($msg eq "DISABLE"){ + $data{twitter}{conf}{disabeld} = 1; + return "Twitter disabeld"; + } #ERROR-Counter my ($err_cnt,$err_max); if(defined($data{twitter}{error})){