2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

32_yowsup.pm: use client hash for permission check instead of parent hash

git-svn-id: https://svn.fhem.de/fhem/trunk@11389 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2016-05-05 10:46:02 +00:00
parent afaac2ef95
commit 2452b9ede8

View File

@ -406,6 +406,7 @@ yowsup_Parse($$)
}
$message =~ s/\n$//;
$message =~ s/[\b]*$//;
my $chash = $modules{yowsup}{defptr}{$number};
if( !$chash ) {
@ -450,7 +451,8 @@ yowsup_Parse($$)
if( !$accept_from || $last_sender || ",$accept_from," =~/,$last_sender,/ ) {
Log3 $name, 3, "$cname: received command: $cmd";
my $ret = AnalyzeCommandChain( $hash, $cmd );
$chash->{SNAME} = $cname;
my $ret = AnalyzeCommandChain( $chash, $cmd );
Log3 $name, 4, "$cname: command result: $ret";