2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

70_PushNotifier: require Try::Tiny

git-svn-id: https://svn.fhem.de/fhem/trunk@9266 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
xusader 2015-09-17 11:06:44 +00:00
parent ff2b6e4ea2
commit 7cf95409c8
2 changed files with 5 additions and 0 deletions

View File

@ -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.
- bugfix: 70_PushNotifier: - require Try::Tiny
- feature: 70_Jabber: - Added OTR (Off the Record) end to end encryption
- Added MUC (Multi-User-Channel) joining and handling
- change: 74_AMAD: improved translation englisch

View File

@ -52,6 +52,10 @@ PushNotifier_Define($$)
return "$deviceID is not a valid regex for <deviceID>";
}
if (!eval { require Try::Tiny }) {
return "Perl module Try::Tiny not installed but is needed by this module. Please install it first (e.g. \"cpan -i Try::Tiny\")";
}
$hash->{STATE} = 'Initialized';
if(defined($apiToken) && defined($app)&& defined($user)&& defined($passwd)&& defined($deviceID)) {