mirror of https://github.com/SeanOMik/znc-push.git
Merge pull request #145 from Frostman/slack-support
Slack: Add title to the text itself and make it bold
This commit is contained in:
commit
5ad308af54
2
push.cpp
2
push.cpp
|
@ -614,7 +614,7 @@ class CPushMod : public CModule
|
||||||
params["username"] = options["username"];
|
params["username"] = options["username"];
|
||||||
}
|
}
|
||||||
|
|
||||||
params["payload"] = expand("{\"channel\": \"{target}\", \"pretext\": \"{title}\", \"text\": \"{message}\"}", replace);
|
params["payload"] = expand("{\"channel\": \"{target}\", \"text\": \"*{title}*: {message}\"}", replace);
|
||||||
|
|
||||||
PutDebug("payload: " + params["payload"]);
|
PutDebug("payload: " + params["payload"]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue