1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 05:43:13 +02:00

Fix saset language reply

This commit is contained in:
Adam
2015-12-28 17:45:44 -05:00
parent a25f94456d
commit 6e48b1d56f
+4 -1
View File
@@ -816,7 +816,10 @@ class CommandNSSetLanguage : public Command
Log(nc == source.GetAccount() ? LOG_COMMAND : LOG_ADMIN, source, this) << "to change the language of " << nc->display << " to " << param;
nc->language = param;
source.Reply(_("Language changed to \002English\002."));
if (source.GetAccount() == nc)
source.Reply(_("Language changed to \002English\002."));
else
source.Reply(_("Language for \002%s\002 changed to \002%s\002."), nc->display.c_str(), Language::Translate(param.c_str(), _("English")));
}
void Execute(CommandSource &source, const std::vector<Anope::string> &param) anope_override