mirror of https://github.com/SeanOMik/znc-push.git
Merge pull request #94 from Nothing4You/patch-3
Add {network} keyword expansion
This commit is contained in:
commit
f62ba64b41
|
@ -205,6 +205,7 @@ The following keywords will be replaced with the appropriate value:
|
|||
|
||||
* `{context}`: the channel or query window context
|
||||
* `{nick}`: the nick that sent the message
|
||||
* `{network}`: the network the message is coming from
|
||||
* `{datetime}`: [ISO 8601][] date string, in server-local time
|
||||
* `{unixtime}`: unix-style integer timestamp
|
||||
* `{title}`: the default title for the notification
|
||||
|
|
1
push.cpp
1
push.cpp
|
@ -249,6 +249,7 @@ class CPushMod : public CModule
|
|||
replace["{title}"] = title;
|
||||
replace["{username}"] = options["username"];
|
||||
replace["{secret}"] = options["secret"];
|
||||
replace["{network}"] = GetNetwork()->GetName();
|
||||
|
||||
CString message_uri = expand(options["message_uri"], replace);
|
||||
CString message_title = expand(options["message_title"], replace);
|
||||
|
|
Loading…
Reference in New Issue