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:
+4
-5
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user