sbp/saxo — pull request #41 by musalbas (2014-04-12 10:16:06+00:00)
Title: Make the connection step more IRCd cross-compatible

Some popular IRCds, such as charybdis, will send you a 451 "not registered" error if you send a JOIN or WHO command before responding to the initial PING request the server sends you, hence saxo fails to connect. This change makes it so that saxo only sends those commands after receiving the RPL_WELCOME message (001), as specified in [RFC 2812](http://www.networksorcery.com/enp/rfc/rfc2812.txt).

Some popular IRCds, such as charybdis, also only accept PONG replies that match the PING argument sent by the server. This commit makes it so that saxo respects that.