Changeset 290:5ac24f90a4f3

Show
Ignore:
Timestamp:
07/03/2008 05:21:54 PM (4 years ago)
Author:
Dmitry Nezhevenko <dion@…>
Branch:
default
Message:

Allow empty version match

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/plugins/muc/mucplugin.cpp

    r289 r290  
    972972        QString xmlns=QString::fromStdString(s->xmlns()); 
    973973        if (s->subtype()!=gloox::StanzaIqResult || xmlns!="jabber:iq:version") 
    974         return false; 
     974                return false; 
    975975 
    976976        gloox::Tag* query=s->findChild("query", "xmlns", xmlns.toStdString()); 
     
    13131313        { 
    13141314                AListItem* item=list->at(i); 
     1315                bool processEmpty=false; 
    13151316 
    13161317                if (matcher!=AListItem::MatcherUnknown && matcher!=AListItem::MatcherAll && 
     
    13431344                        if (!nick || !nick->isVersionStored()) 
    13441345                                continue; 
     1346                        processEmpty=true; 
    13451347                } 
    13461348 
     
    13591361                } 
    13601362 
    1361                 if (testValue.isEmpty()) 
     1363                if (!processEmpty && testValue.isEmpty()) 
    13621364                        continue; 
    13631365