mirror of https://github.com/SeanOMik/znc-push.git
Add {network} for keyword expansion
This commit is contained in:
parent
8c814bfacc
commit
0317a26ec7
1
push.cpp
1
push.cpp
|
@ -249,6 +249,7 @@ class CPushMod : public CModule
|
||||||
replace["{title}"] = title;
|
replace["{title}"] = title;
|
||||||
replace["{username}"] = options["username"];
|
replace["{username}"] = options["username"];
|
||||||
replace["{secret}"] = options["secret"];
|
replace["{secret}"] = options["secret"];
|
||||||
|
replace["{network}"] = GetNetwork()->GetName();
|
||||||
|
|
||||||
CString message_uri = expand(options["message_uri"], replace);
|
CString message_uri = expand(options["message_uri"], replace);
|
||||||
CString message_title = expand(options["message_title"], replace);
|
CString message_title = expand(options["message_title"], replace);
|
||||||
|
|
Loading…
Reference in New Issue