Fix relation undefined error.
authorSteve Youngs <steve@emchat.org>
Sun, 20 Jul 2014 06:04:05 +0000 (16:04 +1000)
committerSteve Youngs <steve@emchat.org>
Sun, 20 Jul 2014 06:04:05 +0000 (16:04 +1000)
commitad7a683c3ed5ff3604ed9cb4adfcf774a7c5d02b
tree11277fefb1484f2a40653b302c8caca42a3f9c18
parent04f460e4e8c5b18281948af89ba63192d1ba426e
Fix relation undefined error.

This error was caused by the scenario of having multiple ICQ clients
(non-EMchat) connected.  If one or more of the other clients cycled its
connection it could cause the HELLO CID to be sent to EMchat, which would
get rather confused seeing as though it wasn't in the middle of logging
in.

To work around this we just force a disconnect.  If the user has saved
their password EMchat will then attempt an auto-reconnect.  After the new
connection is established all is good again.

* emchat-v8.el (emchat-v8-fetch-flap): Disconnect when a bogus
FLAP header comes in.

Signed-off-by: Steve Youngs <steve@emchat.org>
emchat-v8.el