mirror of
https://github.com/anope/anope.git
synced 2026-06-30 08:56:37 +02:00
Search all domains for language strings, fixes the mess that we used to use to translate strings in 3rd party modules
This commit is contained in:
+3
-2
@@ -243,10 +243,11 @@ void User::SendMessage(BotInfo *source, Anope::string msg)
|
||||
Anope::string tok;
|
||||
while (sep.GetToken(tok))
|
||||
{
|
||||
const char *translated_message = translate(this, tok.c_str());
|
||||
if (Config->UsePrivmsg && ((!this->nc && Config->NSDefFlags.HasFlag(NI_MSG)) || (this->nc && this->nc->HasFlag(NI_MSG))))
|
||||
ircdproto->SendPrivmsg(source, this->nick, "%s", tok.c_str());
|
||||
ircdproto->SendPrivmsg(source, this->nick, "%s", translated_message);
|
||||
else
|
||||
ircdproto->SendNotice(source, this->nick, "%s", tok.c_str());
|
||||
ircdproto->SendNotice(source, this->nick, "%s", translated_message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user