From 115003bd86a50e6d84fca063ab72451e317e787a Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Thu, 28 Jun 2007 17:23:18 +0000 Subject: Auto reconnect --- vchat-commands.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'vchat-commands.c') diff --git a/vchat-commands.c b/vchat-commands.c index 5dc7b4f..8a4f475 100755 --- a/vchat-commands.c +++ b/vchat-commands.c @@ -27,6 +27,9 @@ /* version of this module */ char *vchat_cm_version = "$Id$"; +/* from vchat-client.c */ +extern int ownquit; + /* our "/command " table */ enum { COMMAND_VERSION, @@ -228,6 +231,10 @@ handleline (char *line) case 'O': dothink( line + 2, line[1] ); break; + case 'x': + /* inform vchat-client, that the following connection + drop was intentional */ + ownquit = 1; /* fallthrough intended */ default: /* generic server command, send to server, show to user */ snprintf (tmpstr, TMPSTRSIZE, getformatstr(FS_COMMAND), line); @@ -375,6 +382,10 @@ command_quit(char *tail) /* show action in channel window */ writechan (tmpstr); + + /* Inform vchat-client, that the closing connection + following is intended */ + ownquit = 1; } /* print out version */ -- cgit v1.2.3