diff --git a/src/irc/channel.cpp b/src/irc/channel.cpp --- a/src/irc/channel.cpp +++ b/src/irc/channel.cpp @@ -1378,7 +1378,10 @@ if (!cleanTopic.isEmpty() && hasIRCMarkups(cleanTopic)) cleanTopic += QStringLiteral("\017"); - appendCommandMessage(i18n("Topic"), i18n("The channel topic is \"%1\".", cleanTopic), messageTags); + if (!Preferences::self()->hideUnimportantEvents()) + { + appendCommandMessage(i18n("Topic"), i18n("The channel topic is \"%1\".", cleanTopic), messageTags); + } m_topicHistory->appendTopic(replaceIRCMarkups(Konversation::removeIrcMarkup(text))); } diff --git a/src/irc/server.cpp b/src/irc/server.cpp --- a/src/irc/server.cpp +++ b/src/irc/server.cpp @@ -3607,6 +3607,11 @@ void Server::appendCommandMessageToChannel(const QString& channel, const QString& command, const QString& message, const QHash &messageTags, bool highlight, bool parseURL) { + if (Preferences::self()->hideUnimportantEvents()) + { + return; + } + Channel* outChannel = getChannelByName(channel); if (outChannel) {