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 15:04:46 +0000 (17:04 +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/ctcpparser.cpp

index 7619a69..1aa8c0e 100644 (file)
@@ -177,7 +177,8 @@ void CtcpParser::parse(IrcEventRawMessage *e, Message::Type messagetype) {
 
     ctcpcmd = ctcpcmd.toUpper();
 
 
     ctcpcmd = ctcpcmd.toUpper();
 
-    if(!coreSession()->ignoreListManager()->ctcpMatch(e->prefix(), e->network()->networkName(), ctcpcmd)) {
+    // we don't want to block /me messages by the CTCP ignore list
+    if(ctcpcmd == QLatin1String("ACTION") || !coreSession()->ignoreListManager()->ctcpMatch(e->prefix(), e->network()->networkName(), ctcpcmd)) {
       if(uuid.isNull())
         uuid = QUuid::createUuid();
 
       if(uuid.isNull())
         uuid = QUuid::createUuid();