2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 19:30:31 +00:00

70_Pushbullet.pm: allow skype: in links

git-svn-id: https://svn.fhem.de/fhem/trunk@8252 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
fhainz 2015-03-21 13:07:00 +00:00
parent f4a2179a35
commit f2ff207ea9

View File

@ -163,7 +163,8 @@ sub Pushbullet_Set($@) {
($link, $title, $deviceNick, $deviceIden, $deviceEmail) = Pushbullet_checkArgs($hash, $cmd, @setValues); ($link, $title, $deviceNick, $deviceIden, $deviceEmail) = Pushbullet_checkArgs($hash, $cmd, @setValues);
# Link check # Link check
return "URL is not valid. Correct sytax: set " . $name . " link http://www.google.com [| Title | Device] " if( $link !~ /^(http|https):\/\// ); return "URL is not valid. Correct sytax: set " . $name . " link http://www.google.com [| Title | Device] "
if( $link !~ /^(http|https):\/\/.*/ && $link !~ /^skype:.*/ );
# Push geht an Device # Push geht an Device
$jsonHash = {'type' => 'link', 'device_iden' => $deviceIden, 'title' => $title, 'url' => $link}; $jsonHash = {'type' => 'link', 'device_iden' => $deviceIden, 'title' => $title, 'url' => $link};