summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-22 22:22:15 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-22 23:21:10 +0300
commit6b92425b46de741d4cda35027083fd988ac4e942 (patch)
tree4ea1b96d494d267ed3ceb835d611d4b095bc51f7 /src/being.cpp
parent0fcce97fe86721f4b426250a32f461ad951f6d99 (diff)
downloadplus-6b92425b46de741d4cda35027083fd988ac4e942.tar.gz
plus-6b92425b46de741d4cda35027083fd988ac4e942.tar.bz2
plus-6b92425b46de741d4cda35027083fd988ac4e942.tar.xz
plus-6b92425b46de741d4cda35027083fd988ac4e942.zip
Add option to accept language messages in any languge.
This messages will be showed in language or general tab.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 839999312..a30693d19 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -60,6 +60,7 @@
#include "resources/resourcemanager.h"
#include "gui/widgets/chattab.h"
+#include "gui/widgets/langtab.h"
#include "utils/gettext.h"
@@ -440,11 +441,18 @@ void Being::setPath(const Path &path)
}
}
-void Being::setSpeech(const std::string &text, int time)
+void Being::setSpeech(const std::string &text, const std::string &channel,
+ int time)
{
if (!userPalette)
return;
+ if (!channel.empty() && (langChatTab && langChatTab->getChannelName()
+ != channel))
+ {
+ return;
+ }
+
// Remove colors
mSpeech = removeColors(text);