diff options
Diffstat (limited to 'modules/chanserv/akick.cpp')
-rw-r--r-- | modules/chanserv/akick.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/chanserv/akick.cpp b/modules/chanserv/akick.cpp index d1bb0a099..71ea85e73 100644 --- a/modules/chanserv/akick.cpp +++ b/modules/chanserv/akick.cpp @@ -717,7 +717,11 @@ class CSAKick : public Module mask = ak->GetMask(); reason = ak->GetReason(); if (reason.empty()) - reason = Language::Translate(u, Config->GetModule(this)->Get<Anope::string>("autokickreason").c_str()); + { + reason = Language::Translate(u, Config->GetModule(this)->Get<Anope::string>("autokickreason")); + reason = reason.replace_all_cs("%n", u->nick); + reason = reason.replace_all_cs("%c", c->name); + } if (reason.empty()) reason = Language::Translate(u, _("User has been banned from the channel")); return EVENT_STOP; |