summaryrefslogtreecommitdiff
path: root/modules/commands/cs_akick.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2015-12-13 19:52:50 -0500
committerAdam <Adam@anope.org>2015-12-13 19:52:50 -0500
commit7ce0eb219b2f143833f6b157c5905855fb77e527 (patch)
treee085e2ae178c4e72e29930aa1e169e6b0e27f7c0 /modules/commands/cs_akick.cpp
parent99282e65a6d5904e0fb7c5735d41892cafeda1f5 (diff)
Fixup ecdd046c80d696a882b12af615ed9f217afd40a9 to compile
Diffstat (limited to 'modules/commands/cs_akick.cpp')
-rw-r--r--modules/commands/cs_akick.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/cs_akick.cpp b/modules/commands/cs_akick.cpp
index 327b98b09..7f163b583 100644
--- a/modules/commands/cs_akick.cpp
+++ b/modules/commands/cs_akick.cpp
@@ -555,9 +555,9 @@ class CSAKick : public Module
reason = autokick->reason;
if (reason.empty())
{
- 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);
+ 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);
}
if (reason.empty())
reason = Language::Translate(u, _("User has been banned from the channel"));