mirror of https://github.com/SeanOMik/znc-push.git
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:
parent
28908b6eb6
commit
a021d55010
|
@ -79,9 +79,9 @@ you're done!
|
||||||
|
|
||||||
You can also load the module with options:
|
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 <sound> 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 <message_sound> 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 <username> with the secret and replace <secret>
|
no username, in that case you can replace <username> with the secret and replace <secret>
|
||||||
with <strong>null</strong>.
|
with <strong>null</strong>.
|
||||||
|
|
||||||
|
|
12
push.cpp
12
push.cpp
|
@ -109,7 +109,13 @@ class CPushMod : public CModule
|
||||||
defaults["username"] = "";
|
defaults["username"] = "";
|
||||||
defaults["secret"] = "";
|
defaults["secret"] = "";
|
||||||
defaults["target"] = "";
|
defaults["target"] = "";
|
||||||
|
|
||||||
|
// Notification settings
|
||||||
defaults["message_sound"] = "";
|
defaults["message_sound"] = "";
|
||||||
|
defaults["message_uri"] = "";
|
||||||
|
defaults["message_length"] = "100";
|
||||||
|
defaults["message_title"] = "{title}";
|
||||||
|
defaults["message_content"] = "{message}";
|
||||||
|
|
||||||
// Condition strings
|
// Condition strings
|
||||||
defaults["channel_conditions"] = "all";
|
defaults["channel_conditions"] = "all";
|
||||||
|
@ -125,12 +131,6 @@ class CPushMod : public CModule
|
||||||
defaults["nick_blacklist"] = "";
|
defaults["nick_blacklist"] = "";
|
||||||
defaults["replied"] = "yes";
|
defaults["replied"] = "yes";
|
||||||
|
|
||||||
// Notification settings
|
|
||||||
defaults["message_length"] = "100";
|
|
||||||
defaults["message_uri"] = "";
|
|
||||||
defaults["message_title"] = "{title}";
|
|
||||||
defaults["message_content"] = "{message}";
|
|
||||||
|
|
||||||
defaults["debug"] = "off";
|
defaults["debug"] = "off";
|
||||||
}
|
}
|
||||||
virtual ~CPushMod() {}
|
virtual ~CPushMod() {}
|
||||||
|
|
Loading…
Reference in New Issue