diff options
author | Adam <Adam@anope.org> | 2015-12-13 19:37:24 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2015-12-13 19:37:24 -0500 |
commit | ecdd046c80d696a882b12af615ed9f217afd40a9 (patch) | |
tree | 69979a41ad3ee87fae79085b49a6b9eae63eb685 /modules/commands/cs_akick.cpp | |
parent | 98b35dfab2d7e532e9634de4fc8c695d5911c351 (diff) |
Add some replacement tokens for akick reason and welcome notice
Diffstat (limited to 'modules/commands/cs_akick.cpp')
-rw-r--r-- | modules/commands/cs_akick.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/commands/cs_akick.cpp b/modules/commands/cs_akick.cpp index 03db4c623..327b98b09 100644 --- a/modules/commands/cs_akick.cpp +++ b/modules/commands/cs_akick.cpp @@ -554,7 +554,11 @@ class CSAKick : public Module mask = autokick->mask; reason = autokick->reason; if (reason.empty()) - reason = Language::Translate(u, Config->GetModule(this)->Get<const Anope::string>("autokickreason").c_str()); + { + reason = Language::Translate(u, Config->GetModule(this)->Get<const Anope::string>("autokickreason").c_str()) + .replace_all_cs("%n", u->nick) + .replace_all_cs("%c", c->name); + } if (reason.empty()) reason = Language::Translate(u, _("User has been banned from the channel")); return EVENT_STOP; |