mirror of https://github.com/SeanOMik/znc-push.git
Check for username/secret when sending messages
This commit is contained in:
parent
4667fd52bc
commit
d76bc28067
7
push.cpp
7
push.cpp
|
@ -288,8 +288,15 @@ class CPushMod : public CModule
|
|||
CString service_auth;
|
||||
MCString params;
|
||||
|
||||
// Service-specific profiles
|
||||
if (service == "notifo")
|
||||
{
|
||||
if (options["username"] == "" || options["secret"] == "")
|
||||
{
|
||||
PutModule("Error: username or secret not set");
|
||||
return;
|
||||
}
|
||||
|
||||
service_host = "api.notifo.com";
|
||||
service_url = "/v1/send_notification";
|
||||
|
||||
|
|
Loading…
Reference in New Issue