1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 02:46:38 +02:00

Translate whole messages before splitting them up to send to users

This commit is contained in:
Adam
2011-09-03 14:39:12 -04:00
parent 30e6fc07d6
commit 3815e7d61e
2 changed files with 9 additions and 9 deletions
+4 -5
View File
@@ -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()