From 3815e7d61ed07ce3d06c8c8db72128ef5ceaf39c Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 3 Sep 2011 14:39:12 -0400 Subject: Translate whole messages before splitting them up to send to users --- src/command.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/command.cpp') 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() -- cgit