summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-09-03 14:39:12 -0400
committerAdam <Adam@anope.org>2011-09-03 14:39:12 -0400
commit3815e7d61ed07ce3d06c8c8db72128ef5ceaf39c (patch)
tree95ea90e88e1587f5ab4649e4592f649a918d1607 /src/command.cpp
parent30e6fc07d6f0c531a35602d62cfc550c5e7a5ff1 (diff)
Translate whole messages before splitting them up to send to users
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()