mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
50_SSChatbot: fix 'disabled' is not working when receiving data
git-svn-id: https://svn.fhem.de/fhem/trunk@28738 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a83163de26
commit
47ee4e8967
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
# Do not insert empty lines here, update check depends on it
|
||||
- bugfix: 50_SSChatbot: 'disabled' is not working when receiving data
|
||||
- bugfix: 76_SolarForecast: ctrlWeatherDev1 Drop-Down if no DWD Device exists
|
||||
- feature: 76_SolarForecast: integrate OpenMeteoDWDEnsemble-API
|
||||
- change: 70_PylonLowVoltage: avoid possible Illegal division by zero
|
||||
|
@ -3,7 +3,7 @@
|
||||
#########################################################################################################################
|
||||
# 50_SSChatBot.pm
|
||||
#
|
||||
# (c) 2019-2023 by Heiko Maaz
|
||||
# (c) 2019-2024 by Heiko Maaz
|
||||
# e-mail: Heiko dot Maaz at t-online dot de
|
||||
#
|
||||
# This Module can be used to operate as Bot for Synology Chat.
|
||||
@ -136,6 +136,7 @@ BEGIN {
|
||||
|
||||
# Versions History intern
|
||||
my %vNotesIntern = (
|
||||
"1.15.1" => "02.04.2024 _botCGIdata: fix 'disabled' is not working when receiving data ",
|
||||
"1.15.0" => "19.05.2023 compatibility to DSM starting with DSM 7.2, Forum: https://forum.fhem.de/index.php?msg=1276303 ",
|
||||
"1.14.0" => "08.04.2023 prepared for new Setter deletePostId, loglevel for HttpUtils ",
|
||||
"1.13.0" => "14.01.2023 new attr spareHost, sparePort ",
|
||||
@ -1557,6 +1558,9 @@ sub _botCGIdata {
|
||||
return ($mime, $err) if($err);
|
||||
|
||||
my $name = $dat->{name};
|
||||
|
||||
return ('text/plain; charset=utf-8', 'disabled') if(IsDisabled($name));
|
||||
|
||||
my $args = $dat->{args};
|
||||
my $h = $dat->{h};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user