diff options
-rw-r--r-- | src/gui/widgets/chattab.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index 31ae6a84b..9d936755c 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -460,17 +460,19 @@ int ChatTab::getType() const void ChatTab::addRow(std::string &line) { size_t idx = 0; - - for (size_t f = 0; f < line.length(); f++) + if (line.find("[@@http") == std::string::npos) { - if (line.at(f) == ' ') - { - idx = f; - } - else if (f - idx > MAX_WORD_SIZE) + for (size_t f = 0; f < line.length(); f++) { - line.insert(f, " "); - idx = f; + if (line.at(f) == ' ') + { + idx = f; + } + else if (f - idx > MAX_WORD_SIZE) + { + line.insert(f, " "); + idx = f; + } } } mTextOutput->addRow(line); |