Fixed a bug where the client would not initialize channel and user metadata
authorMarcus Eggenberger <egs@quassel-irc.org>
Sun, 10 Aug 2008 16:20:25 +0000 (18:20 +0200)
committerMarcus Eggenberger <egs@quassel-irc.org>
Sun, 10 Aug 2008 16:20:25 +0000 (18:20 +0200)
Symptom: channels being disabled though new chatlines were received

src/common/network.cpp

index e763fb9..58171fe 100644 (file)
@@ -547,7 +547,7 @@ QVariantMap Network::initIrcUsersAndChannels() const {
 
 void Network::initSetIrcUsersAndChannels(const QVariantMap &usersAndChannels) {
   Q_ASSERT(proxy());
-  if(!_ircUsers.isEmpty() || !_ircChannels.isEmpty()) {
+  if(isInitialized()) {
     qWarning() << "Network" << networkId() << "received init data for users and channels allthough there allready are known users or channels!";
     return;
   }