From a470ca2b2854de772288f63dfbb4c179706a2ab9 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 24 Feb 2000 00:51:49 +0000 Subject: [PATCH] * Client protocol synchronization check during exit from chat. This closes Bug #15. --- citadel/ChangeLog | 5 +++++ citadel/client_chat.c | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/citadel/ChangeLog b/citadel/ChangeLog index 4cf56dc43..7466ee8e8 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,8 @@ $Log$ +Revision 1.467 2000/02/24 00:51:48 ajc +* Client protocol synchronization check during exit from chat. + This closes Bug #15. + Revision 1.466 2000/02/22 16:37:28 ajc * Minor tweaks to RFC822 output to keep brain-damanged MS Outlook from dying @@ -1650,3 +1654,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import + diff --git a/citadel/client_chat.c b/citadel/client_chat.c index 217193d78..5f6dca533 100644 --- a/citadel/client_chat.c +++ b/citadel/client_chat.c @@ -148,6 +148,19 @@ RCL: if (send_complete_line) { fflush(stdout); set_keepalives(KA_YES); + + + /* Some users complained about the client and server + * losing protocol synchronization when exiting chat. + * This little dialog forces everything to be + * hunky-dory. + */ + serv_puts("ECHO __ExitingChat__"); + do { + serv_gets(buf); + } while (strcmp(buf, "200 __ExitingChat__")); + + return; } if (num_parms(buf)>=2) { -- 2.39.2