Don't have CTCP ignore rules apply to ACTIONs
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 26 Oct 2010 15:04:46 +0000 (17:04 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 26 Oct 2010 16:25:52 +0000 (18:25 +0200)
This accidentally slipped in 0f2c520a7. It's not at all intuitive for a user why
/me should be a CTCP event, so we don't want to apply the CTCP ignore rules to that.

src/core/ctcphandler.cpp

index 56f8b33..5853ff8 100644 (file)
@@ -155,7 +155,7 @@ void CtcpHandler::parse(Message::Type messageType, const QString &prefix, const
       ctcpparam = QString();
     }
 
-    if(!_ignoreListManager->ctcpMatch(prefix, network()->networkName(), ctcpcmd.toUpper())) {
+    if(ctcpcmd.toUpper() == QLatin1String("ACTION") || !_ignoreListManager->ctcpMatch(prefix, network()->networkName(), ctcpcmd.toUpper())) {
       QString reply_;
       handle(ctcpcmd, Q_ARG(CtcpType, ctcptype), Q_ARG(QString, prefix), Q_ARG(QString, target), Q_ARG(QString, ctcpparam), Q_ARG(QString, reply_));
       if(ctcptype == CtcpQuery && !reply_.isNull()) {