mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-15 04:20:56 +00:00
32_yowsup.pm: added missing ShutdownFn
git-svn-id: https://svn.fhem.de/fhem/trunk@8870 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2f7defb28b
commit
087df1a9be
@ -20,6 +20,7 @@ yowsup_Initialize($)
|
||||
$hash->{NOTIFYDEV} = "global";
|
||||
$hash->{NotifyFn} = "yowsup_Notify";
|
||||
$hash->{UndefFn} = "yowsup_Undefine";
|
||||
$hash->{ShutdownFn} = "yowsup_Shutdown";
|
||||
$hash->{SetFn} = "yowsup_Set";
|
||||
#$hash->{GetFn} = "yowsup_Get";
|
||||
$hash->{AttrFn} = "yowsup_Attr";
|
||||
@ -225,6 +226,16 @@ yowsup_Undefine($$)
|
||||
|
||||
return undef;
|
||||
}
|
||||
sub
|
||||
yowsup_Shutdown($)
|
||||
{
|
||||
my ($hash) = @_;
|
||||
|
||||
yowsup_Disconnect($hash);
|
||||
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
||||
sub
|
||||
yowsup_Set($$@)
|
||||
@ -390,7 +401,7 @@ yowsup_Parse($$)
|
||||
|
||||
my $allowed = AttrVal($cname, "allowedCommands", undef );
|
||||
my $ret = AnalyzeCommandChain( $hash, $cmd, $allowed );
|
||||
|
||||
|
||||
Log3 $name, 4, "$cname: command result: $ret";
|
||||
|
||||
yowsup_Write( $hash, "/message send $chash->{NUMBER} '$ret'" ) if( $ret );
|
||||
|
Loading…
x
Reference in New Issue
Block a user