Revert "fixing BR #264 (core crash after join)"
[quassel.git] / src / core / ircserverhandler.cpp
index b6879bb..58a2302 100644 (file)
@@ -216,12 +216,6 @@ void IrcServerHandler::handleMode(const QString &prefix, const QList<QByteArray>
     emit displayMsg(Message::Mode, BufferInfo::ChannelBuffer, serverDecode(params[0]), serverDecode(params).join(" "), prefix);
 
     IrcChannel *channel = network()->ircChannel(params[0]);
-    if(!channel) {
-      // we received mode information for a channel we're not in. that means probably we've just been kicked out or something like that
-      // anyways: we don't have a place to store the data --> discard the info.
-      return;
-    }
-
     QString modes = params[1];
     bool add = true;
     int paramOffset = 2;