X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcorehighlightrulemanager.cpp;h=c86e26d71094069790aa386274975f535531cbc9;hb=8426fae7e92dfb7608f66be926c68c304b97cb01;hp=99a046f3109d6d764ad1c9a949547de5904f5017;hpb=fcacaaf16551524c7ebb6114254d005274cc3d63;p=quassel.git diff --git a/src/core/corehighlightrulemanager.cpp b/src/core/corehighlightrulemanager.cpp index 99a046f3..c86e26d7 100644 --- a/src/core/corehighlightrulemanager.cpp +++ b/src/core/corehighlightrulemanager.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -25,7 +25,7 @@ constexpr auto settingsKey = "HighlightRuleList"; -CoreHighlightRuleManager::CoreHighlightRuleManager(CoreSession *session) +CoreHighlightRuleManager::CoreHighlightRuleManager(CoreSession* session) : HighlightRuleManager(session) , _coreSession{session} { @@ -44,9 +44,7 @@ void CoreHighlightRuleManager::save() Core::setUserSetting(_coreSession->user(), settingsKey, toVariantMap()); } -bool CoreHighlightRuleManager::match(const RawMessage &msg, const QString ¤tNick, - const QStringList &identityNicks) +bool CoreHighlightRuleManager::match(const RawMessage& msg, const QString& currentNick, const QStringList& identityNicks) { - return match(msg.networkId, msg.text, msg.sender, msg.type, msg.flags, msg.target, currentNick, - identityNicks); + return match(msg.networkId, msg.text, msg.sender, msg.type, msg.flags, msg.target, currentNick, identityNicks); }