summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-06-17 19:57:43 -0400
committerAdam <Adam@anope.org>2011-06-17 19:57:43 -0400
commita1b36ec0a527e6d7a9d224b56bf9571619d5f92e (patch)
tree5e74290f46205ef1ad86700e1f04ec016b1f66fd /src/users.cpp
parent48e995ddf2cd30a05222a51e665c02b1e7ae567a (diff)
Search all domains for language strings, fixes the mess that we used to use to translate strings in 3rd party modules
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index fe947d89a..6f676e79b 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -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);
}
}