mirror of
https://github.com/anope/anope.git
synced 2026-06-26 01:06:39 +02:00
Fixed not translating messages using varargs
This commit is contained in:
+6
-7
@@ -14,15 +14,14 @@ void CommandSource::Reply(const char *message, ...)
|
||||
va_list args;
|
||||
char buf[4096]; // Messages can be really big.
|
||||
|
||||
if (message)
|
||||
{
|
||||
va_start(args, message);
|
||||
vsnprintf(buf, sizeof(buf), message, args);
|
||||
const char *translated_message = translate(this->u, message);
|
||||
|
||||
this->Reply(Anope::string(buf));
|
||||
va_start(args, message);
|
||||
vsnprintf(buf, sizeof(buf), translated_message, args);
|
||||
|
||||
va_end(args);
|
||||
}
|
||||
this->Reply(Anope::string(buf));
|
||||
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
void CommandSource::Reply(const Anope::string &message)
|
||||
|
||||
Reference in New Issue
Block a user