summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/command.cpp b/src/command.cpp
index 041551bd4..8a564e91a 100644
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -27,13 +27,12 @@ void CommandSource::Reply(const char *message, ...)
void CommandSource::Reply(const Anope::string &message)
{
- sepstream sep(message, '\n');
+ const char *translated_message = translate(this->u, message.c_str());
+
+ sepstream sep(translated_message, '\n');
Anope::string tok;
while (sep.GetToken(tok))
- {
- const char *translated_message = translate(this->u, tok.c_str());
- this->reply.push_back(translated_message);
- }
+ this->reply.push_back(tok);
}
void CommandSource::DoReply()