First of all, your responses are wrong. What you would send back to the server is:
Since the IRC message will be sent to you in the same format, all you have to do is replace the PING with PONG. You code can be as simple as:Code:PONG :3b22356b\r\n
Code:if(!strncmp(szIrcMsg,"PING",4)) { memcpy(szIrcMsg,"PONG",4); // Send szIrcMsg back to the server now }