From kde-commits Mon Apr 18 16:32:58 2005 From: Olivier Goffart Date: Mon, 18 Apr 2005 16:32:58 +0000 To: kde-commits Subject: kdenetwork/kopete/protocols/msn Message-Id: <20050418163258.BF15C3C8 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111384201721957 CVS commit by ogoffart: Don't send a font name longer than 31 char, otherwhise, the server will disconnect us. BUG:73302 M +3 -1 msnswitchboardsocket.cpp 1.122 --- kdenetwork/kopete/protocols/msn/msnswitchboardsocket.cpp #1.121:1.122 @@ -469,5 +469,7 @@ int MSNSwitchBoardSocket::sendMsg( const if(msg.font() != QFont() ) { - head += "FN=" + escape( msg.font().family()); + //It's verry strange that if the font name is bigger than 31 char, the _server_ close the socket and don't deliver the message. + // the real question is why ? my guess is that MS patched the server because a bug in their client, but that's just a guess. + head += "FN=" + escape( msg.font().family().left(31)); head += "; EF="; if(msg.font().bold())