summaryrefslogtreecommitdiff
path: root/modules/chanserv/cs_akick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/chanserv/cs_akick.cpp')
-rw-r--r--modules/chanserv/cs_akick.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/chanserv/cs_akick.cpp b/modules/chanserv/cs_akick.cpp
index 5453aa5d2..e6672b965 100644
--- a/modules/chanserv/cs_akick.cpp
+++ b/modules/chanserv/cs_akick.cpp
@@ -567,8 +567,10 @@ public:
if (reason.empty())
{
reason = Language::Translate(u, Config->GetModule(this).Get<const Anope::string>("autokickreason").c_str());
- reason = reason.replace_all_cs("%n", u->nick)
- .replace_all_cs("%c", c->name);
+ reason = Anope::Template(reason, {
+ { "channel", c->name },
+ { "nick", u->nick },
+ });
}
if (reason.empty())
reason = Language::Translate(u, _("User has been banned from the channel"));