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