From 5805e144c069623f39763fd53a6c3275438cbab6 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 3 Sep 2010 05:32:15 +0000 Subject: [PATCH] build the string correctly git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10436 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=e8d1f7bc14b8bed1bf23c4256b22830f1c2ffe0b --- netconn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netconn.c b/netconn.c index 3de63949..eb77b514 100755 --- a/netconn.c +++ b/netconn.c @@ -1660,7 +1660,7 @@ static int NetConn_ClientParsePacket(lhnetsocket_t *mysocket, unsigned char *dat // update the server IP in the userinfo (QW servers expect this, and it is used by the reconnect command) InfoString_SetValue(cls.userinfo, sizeof(cls.userinfo), "*ip", addressstring2); // TODO: add userinfo stuff here instead of using NQ commands? - NetConn_WriteString(mysocket, va("\377\377\377\377connect\\protocol\\darkplaces 3\\protocols\\%s\\%schallenge\\%s", protocolnames, cls.connect_userinfo, string + 10), peeraddress); + NetConn_WriteString(mysocket, va("\377\377\377\377connect\\protocol\\darkplaces 3\\protocols\\%s%s\\challenge\\%s", protocolnames, cls.connect_userinfo, string + 10), peeraddress); return true; } if (length == 6 && !memcmp(string, "accept", 6) && cls.connect_trying) -- 2.39.2