reordered notification settings for default options so that user's can

set message_sound and message_uri on module load
This commit is contained in:
Ming Tang 2013-03-01 12:23:48 -08:00
parent 28908b6eb6
commit a021d55010
2 changed files with 8 additions and 8 deletions

View File

@ -79,9 +79,9 @@ you're done!
You can also load the module with options:
/msg *status loadmod push <service> <username> <secret> <target> <sound>
/msg *status loadmod push <service> <username> <secret> <target> <message_sound> <message_uri>
Note: The &lt;sound&gt; option is only available for <a href="https://pushover.net/api#sounds" target="_blank">Pushover.net API</a>. Also, for some services, there is
Note: The &lt;message_sound&gt; option is only available for <a href="https://pushover.net/api#sounds" target="_blank">Pushover.net API</a>. Also, for some services, there is
no username, in that case you can replace &lt;username&gt; with the secret and replace &lt;secret&gt;
with <strong>null</strong>.

View File

@ -109,7 +109,13 @@ class CPushMod : public CModule
defaults["username"] = "";
defaults["secret"] = "";
defaults["target"] = "";
// Notification settings
defaults["message_sound"] = "";
defaults["message_uri"] = "";
defaults["message_length"] = "100";
defaults["message_title"] = "{title}";
defaults["message_content"] = "{message}";
// Condition strings
defaults["channel_conditions"] = "all";
@ -125,12 +131,6 @@ class CPushMod : public CModule
defaults["nick_blacklist"] = "";
defaults["replied"] = "yes";
// Notification settings
defaults["message_length"] = "100";
defaults["message_uri"] = "";
defaults["message_title"] = "{title}";
defaults["message_content"] = "{message}";
defaults["debug"] = "off";
}
virtual ~CPushMod() {}