diff --git a/chatterino.pro b/chatterino.pro index 5f3b48706..3b704d192 100644 --- a/chatterino.pro +++ b/chatterino.pro @@ -169,7 +169,8 @@ HEADERS += \ src/widgets/window.hpp \ src/widgets/splitcontainer.hpp \ src/widgets/helper/droppreview.hpp \ - src/widgets/helper/splitcolumn.hpp + src/widgets/helper/splitcolumn.hpp \ + src/util/irchelpers.hpp PRECOMPILED_HEADER = diff --git a/src/messages/message.cpp b/src/messages/message.cpp index e58eef6e4..0e675b1b4 100644 --- a/src/messages/message.cpp +++ b/src/messages/message.cpp @@ -7,6 +7,7 @@ #include "ircmanager.hpp" #include "messages/link.hpp" #include "resources.hpp" +#include "util/irchelpers.hpp" #include #include @@ -136,7 +137,7 @@ Message *Message::createTimeoutMessage(const QString &username, const QString &d if (reason.length() > 0) { text.append(": \""); - text.append(reason); + text.append(ParseTagString(reason)); text.append("\""); } text.append("."); diff --git a/src/util/irchelpers.hpp b/src/util/irchelpers.hpp new file mode 100644 index 000000000..c8ba28488 --- /dev/null +++ b/src/util/irchelpers.hpp @@ -0,0 +1,16 @@ +#pragma once + +#include + +namespace chatterino { + +QString ParseTagString(const QString &input) +{ + QString output = input; + + // code goes here + + return output; +} + +} // namespace chatterino