From 0317a26ec70a3308cd9d0bbeffbb53b0ac23f815 Mon Sep 17 00:00:00 2001 From: Richard Schwab Date: Fri, 30 May 2014 22:50:18 +0200 Subject: [PATCH 1/2] Add {network} for keyword expansion --- push.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/push.cpp b/push.cpp index 385f847..d1da52b 100755 --- a/push.cpp +++ b/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); From 09628ac0174c2da48bed9a648a667ae421b2bc07 Mon Sep 17 00:00:00 2001 From: Richard Schwab Date: Fri, 30 May 2014 22:53:30 +0200 Subject: [PATCH 2/2] Add {network} for keyword expansion to README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3c6c782..c163eb8 100755 --- a/README.md +++ b/README.md @@ -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