Merge pull request #105 from merlin1991/qdatastream
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 5 Feb 2015 00:08:46 +0000 (01:08 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 5 Feb 2015 00:08:46 +0000 (01:08 +0100)
Set the version of the QDataStream in ClientAuthHandler

1  2 
src/client/clientauthhandler.cpp

@@@ -1,5 -1,5 +1,5 @@@
  /***************************************************************************
 - *   Copyright (C) 2005-2014 by the Quassel Project                        *
 + *   Copyright (C) 2005-2015 by the Quassel Project                        *
   *   devel@quassel-irc.org                                                 *
   *                                                                         *
   *   This program is free software; you can redistribute it and/or modify  *
@@@ -169,6 -169,7 +169,7 @@@ void ClientAuthHandler::onSocketConnect
          _probing = true;
  
          QDataStream stream(socket()); // stream handles the endianness for us
+         stream.setVersion(QDataStream::Qt_4_2);
  
          quint32 magic = Protocol::magic;
  #ifdef HAVE_SSL