From 9182bfdb968285db8a32cbc91f816ee596ba4d98 Mon Sep 17 00:00:00 2001 From: Ming Tang Date: Fri, 1 Mar 2013 12:30:28 -0800 Subject: [PATCH] reorganized configuration section of docs and default options of module. docs and default options should now be properly aligned. --- README.md | 65 ++++++++++++++++++++++++++++--------------------------- push.cpp | 7 +++--- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 9ec9567..b98d326 100644 --- a/README.md +++ b/README.md @@ -220,6 +220,39 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or notifications to; if blank or unset, notifications will be sent to all devices. +### Notifications + +* `message_sound = ""` + + If you're using the Pushover.net API, you can specify a specific sound for the notifications. + +* `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_length = 100` + + Maximum length of the notification message to be sent. The message will be nicely + truncated and ellipsized at or before this length is reached. A value of 0 (zero) will + disable this option. + + When using the custom URL service, this options allows you to specify the URL to send + a GET request to, and has keyword expansion performed on portions of it, including the + path and any query parameter values. + +* `message_title = "{title}"` + + Title that will be provided for the push notification. Keyword expansion is performed + on this value. + +* `message_content = "{message}"` + + Message content that will be sent for the push notification. Keyword expansion is + performed on this value. + + ### Conditions * `away_only = "no"` @@ -302,38 +335,6 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or query window more recently than the last time a notification was sent for that context. -### Notifications - -* `message_sound = {sound}` - - If you're using the Pushover.net API, you can specify a specific sound for the notifications. - -* `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_length = 100` - - Maximum length of the notification message to be sent. The message will be nicely - truncated and ellipsized at or before this length is reached. A value of 0 (zero) will - disable this option. - - When using the custom URL service, this options allows you to specify the URL to send - a GET request to, and has keyword expansion performed on portions of it, including the - path and any query parameter values. - -* `message_title = "{title}"` - - Title that will be provided for the push notification. Keyword expansion is performed - on this value. - -* `message_content = "{message}"` - - Message content that will be sent for the push notification. Keyword expansion is - performed on this value. - ### Advanced * `channel_conditions = "all"` diff --git a/push.cpp b/push.cpp index 6176d6b..79e71cf 100644 --- a/push.cpp +++ b/push.cpp @@ -117,10 +117,6 @@ class CPushMod : public CModule defaults["message_title"] = "{title}"; defaults["message_content"] = "{message}"; - // Condition strings - defaults["channel_conditions"] = "all"; - defaults["query_conditions"] = "all"; - // Notification conditions defaults["away_only"] = "no"; defaults["client_count_less_than"] = "0"; @@ -131,6 +127,9 @@ class CPushMod : public CModule defaults["nick_blacklist"] = ""; defaults["replied"] = "yes"; + // Advanced + defaults["channel_conditions"] = "all"; + defaults["query_conditions"] = "all"; defaults["debug"] = "off"; } virtual ~CPushMod() {}