diff --git a/push.cpp b/push.cpp index 624d53a..1146173 100644 --- a/push.cpp +++ b/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";