Merge pull request #94 from Nothing4You/patch-3

Add {network} keyword expansion
This commit is contained in:
John Reese 2014-05-30 14:03:52 -07:00
commit f62ba64b41
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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);