[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [Konversation] 15992bb: * Ignore: !* hostmask now added automagically
From:       Stanislav Karchebny <stanislav.karchebny () kdemail ! net>
Date:       2010-07-01 13:26:58
Message-ID: 20100701132658.77042BB54A2 () projects ! kde ! org
[Download RAW message or body]

commit 15992bbe1e01ceb4d94702bb05ac909c84b37d1b
Author: Stanislav Karchebny <stanislav.karchebny@kdemail.net>
Date:   Sun Oct 26 17:49:16 2003 +0000

    * Ignore: !* hostmask now added automagically if you specify only nick
    * Fixed off-by-compare bug in Ignore
    * Removed one stupid comment
    
    svn path=/trunk/kdeextragear-2/konversation/; revision=262220

diff --git a/konversation/outputfilter.cpp b/konversation/outputfilter.cpp
index 5f1bcd9..276dbc3 100644
--- a/konversation/outputfilter.cpp
+++ b/konversation/outputfilter.cpp
@@ -848,12 +848,13 @@ void OutputFilter::parseIgnore(const QString& \
parameter)  }
 
     // were there enough parameters?
-    if(parameterList.count()==1)
+    if(parameterList.count()>=1)
     {
       for(unsigned int index=0;index<parameterList.count();index++)
       {
+        if(parameterList[index].contains('!')==0) parameterList[index] += \
                "!*";
         KonversationApplication::preferences.addIgnore(parameterList[index]+","+QString::number(value));
                
-      } // endfor
+      }
 
       output=i18n("Added %1 to your ignore \
list.").arg(parameterList.join(", "));  type=i18n("Ignore");


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic