Now that we're online, we'd like to stay that way. We wouldn't want the ICQ server to disconnect us just because we're idling.
In order to notify the ICQ server that you're alive, just use the icq_KeepAlive function (line 228). If the ICQ server does not get a keep-alive sign in two minutes, you get disconnected so make sure you use this function frequently enough.
Here is how it is done: