Client-Hub Handshake
The Client-Hub Handshake, when everything goes well, looks like this in very broad terms. However, the order of commands is not well-defined; different implementations vary widely.
$Lock <lock> Pk=<pk>|
$Key <key>|$ValidateNick <nick>|
Hub
$HubName <name>|$Hello <nick>|
Client
$Version <version>|$MyINFO <info string>|$GetNickList|
Note: most/all? hubs send Lock+Hubname at connect, so dont trigger on hubname, at least not in this order.
Some usefull information concerning the handshaking is also under delayed entry -topic.
