70_Pushover: restrict priority range between -2 and 2
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@9384 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -701,6 +701,8 @@ sub Pushover_SetMessage {
|
||||
}
|
||||
|
||||
if ( $values{priority} ne "" ) {
|
||||
$values{priority} = 2 if ($values{priority} > 2);
|
||||
$values{priority} = -2 if ($values{priority} < -2);
|
||||
$body = $body . "&priority=" . $values{priority};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user