summaryrefslogtreecommitdiff
path: root/modules/commands/ns_set.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2015-12-28 17:45:44 -0500
committerAdam <Adam@anope.org>2015-12-28 17:45:44 -0500
commit6e48b1d56f27e2865ab0a77dc5af58b7acb882ca (patch)
treedeae21b6dfce34207421667acd551b15ef3dc8c4 /modules/commands/ns_set.cpp
parenta25f94456d8d947b8b5ac76b79acaf5d95ac3445 (diff)
Fix saset language reply
Diffstat (limited to 'modules/commands/ns_set.cpp')
-rw-r--r--modules/commands/ns_set.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/commands/ns_set.cpp b/modules/commands/ns_set.cpp
index 589529d61..33f687ced 100644
--- a/modules/commands/ns_set.cpp
+++ b/modules/commands/ns_set.cpp
@@ -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