Readme cleanup and message option reorg

This commit is contained in:
John Reese 2013-04-29 13:03:45 -07:00
parent b56b1cb401
commit ec3eb61a94
2 changed files with 21 additions and 19 deletions

View File

@ -214,19 +214,10 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or
### Notifications
* `message_sound = ""`
* `message_content = "{message}"`
If you're using Pushover.net, you can specify a <a href="https://pushover.net/api#sounds">specific sound</a> for the notifications.
* `message_uri_title` = ""`
If you're using Pushover.net, you can specify a title for the <strong>message_uri</strong> option.
* `message_uri = ""`
URI that will be sent with the push notification. This could be a web address or a
local scheme to access a mobile application. Keyword expansion is performed on this
value.
Message content that will be sent for the push notification. Keyword expansion is
performed on this value.
* `message_length = 100`
@ -243,16 +234,27 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or
Title that will be provided for the push notification. Keyword expansion is performed
on this value.
* `message_content = "{message}"`
* `message_uri = ""`
Message content that will be sent for the push notification. Keyword expansion is
performed on this value.
URI that will be sent with the push notification. This could be a web address or a
local scheme to access a mobile application. Keyword expansion is performed on this
value.
* `message_uri_title` = ""`
If you're using Pushover.net, you can specify a title for the `message_uri` option.
* `message_priority = ""`
Priority level that will be used for the push notification.
Currently supported only by Pushover.net.
* `message_sound = ""`
Notification sound to play with the push notification.
Currently only supported by Pushover.net. Must be chosen from their list of
[supported sounds](https://pushover.net/api#sounds).
### Conditions

View File

@ -111,13 +111,13 @@ class CPushMod : public CModule
defaults["target"] = "";
// Notification settings
defaults["message_sound"] = "";
defaults["message_uri"] = "";
defaults["message_uri_title"] = "";
defaults["message_content"] = "{message}";
defaults["message_length"] = "100";
defaults["message_title"] = "{title}";
defaults["message_content"] = "{message}";
defaults["message_uri"] = "";
defaults["message_uri_title"] = "";
defaults["message_priority"] = "0";
defaults["message_sound"] = "";
// Notification conditions
defaults["away_only"] = "no";