mirror of https://github.com/SeanOMik/znc-push.git
parent
77196be1ca
commit
e418634485
21
push.cpp
21
push.cpp
|
@ -265,6 +265,23 @@ class CPushMod : public CModule
|
|||
params["notification[message]"] = short_message;
|
||||
params["notification[source_url]"] = uri;
|
||||
}
|
||||
else if (service == "prowl")
|
||||
{
|
||||
if (options["secret"] == "")
|
||||
{
|
||||
PutModule("Error: secret not set");
|
||||
return;
|
||||
}
|
||||
|
||||
service_host = "api.prowlapp.com";
|
||||
service_url = "/publicapi/add";
|
||||
|
||||
params["apikey"] = options["secret"];
|
||||
params["application"] = app;
|
||||
params["event"] = title;
|
||||
params["description"] = short_message;
|
||||
params["url"] = uri;
|
||||
}
|
||||
else
|
||||
{
|
||||
PutModule("Error: service type not selected");
|
||||
|
@ -858,6 +875,10 @@ class CPushMod : public CModule
|
|||
{
|
||||
PutModule("Note: Boxcar requires setting the 'username' option");
|
||||
}
|
||||
else if (value == "prowl")
|
||||
{
|
||||
PutModule("Note: Prowl requires setting the 'secret' option");
|
||||
}
|
||||
else
|
||||
{
|
||||
PutModule("Error: unknown service name");
|
||||
|
|
Loading…
Reference in New Issue