diff options
| author | Adam <Adam@anope.org> | 2016-09-28 20:23:54 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2016-09-28 20:23:54 -0400 |
| commit | 87245f2c22f0e39578be561f7220e224a3466559 (patch) | |
| tree | aa4d7eac07e27f70a1ce4bd9c70a91c356e7ca64 /modules | |
| parent | e0794dc801559abea5021e85bdbf412bd9787ead (diff) | |
Fix saset language reply
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/nickserv/set.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/nickserv/set.cpp b/modules/nickserv/set.cpp index 12086e801..15658d234 100644 --- a/modules/nickserv/set.cpp +++ b/modules/nickserv/set.cpp @@ -770,7 +770,11 @@ class CommandNSSetLanguage : public Command Log(nc == source.GetAccount() ? LOG_COMMAND : LOG_ADMIN, source, this) << "to change the language of " << nc->GetDisplay() << " to " << param; nc->SetLanguage(param); - source.Reply(_("Language changed to \002English\002.")); + + if (source.GetAccount() == nc) + source.Reply(_("Language changed to \002{0}\002."), Language::Translate(param.c_str(), _("English"))); + else + source.Reply(_("Language for \002{0}\002 changed to \002{1}\002."), nc->GetDisplay(), Language::Translate(param.c_str(), _("English"))); } void Execute(CommandSource &source, const std::vector<Anope::string> ¶m) override |
