1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

disabling emoitcons

This commit is contained in:
agilob 2014-11-06 13:55:12 +00:00
parent cf40fad419
commit 3f7adb066c
No known key found for this signature in database
GPG Key ID: 34568050DBCCB997

View File

@ -16,6 +16,7 @@
#include "messageaction.h"
#include "src/misc/smileypack.h"
#include "src/misc/settings.h"
MessageAction::MessageAction(const QString &author, const QString &message, const QString &date, const bool &me) :
ChatAction(me, author, date),
@ -25,7 +26,11 @@ MessageAction::MessageAction(const QString &author, const QString &message, cons
QString MessageAction::getMessage(QString div)
{
QString message_ = SmileyPack::getInstance().smileyfied(toHtmlChars(message));
QString message_;
if(Settings::getInstance().getUseEmoticons())
message_ = SmileyPack::getInstance().smileyfied(toHtmlChars(message));
else
message_ = toHtmlChars(message);
// detect urls
QRegExp exp("(?:\\b)(www\\.|http[s]?:\\/\\/|ftp:\\/\\/)\\S+");