summaryrefslogtreecommitdiff
path: root/vchat-commands.c
diff options
context:
space:
mode:
authorerdgeist <>2007-06-28 17:23:18 +0000
committererdgeist <>2007-06-28 17:23:18 +0000
commit115003bd86a50e6d84fca063ab72451e317e787a (patch)
tree492860e645ebae00dbd2269e4554c2506bd074fa /vchat-commands.c
parent3c11bea99886b006ca499e1be6a3a17d225cedc7 (diff)
Auto reconnect
Diffstat (limited to 'vchat-commands.c')
-rwxr-xr-xvchat-commands.c11
1 files changed, 11 insertions, 0 deletions
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 @@
27/* version of this module */ 27/* version of this module */
28char *vchat_cm_version = "$Id$"; 28char *vchat_cm_version = "$Id$";
29 29
30/* from vchat-client.c */
31extern int ownquit;
32
30/* our "/command " table */ 33/* our "/command " table */
31enum { 34enum {
32COMMAND_VERSION, 35COMMAND_VERSION,
@@ -228,6 +231,10 @@ handleline (char *line)
228 case 'O': 231 case 'O':
229 dothink( line + 2, line[1] ); 232 dothink( line + 2, line[1] );
230 break; 233 break;
234 case 'x':
235 /* inform vchat-client, that the following connection
236 drop was intentional */
237 ownquit = 1; /* fallthrough intended */
231 default: 238 default:
232 /* generic server command, send to server, show to user */ 239 /* generic server command, send to server, show to user */
233 snprintf (tmpstr, TMPSTRSIZE, getformatstr(FS_COMMAND), line); 240 snprintf (tmpstr, TMPSTRSIZE, getformatstr(FS_COMMAND), line);
@@ -375,6 +382,10 @@ command_quit(char *tail)
375 382
376 /* show action in channel window */ 383 /* show action in channel window */
377 writechan (tmpstr); 384 writechan (tmpstr);
385
386 /* Inform vchat-client, that the closing connection
387 following is intended */
388 ownquit = 1;
378} 389}
379 390
380/* print out version */ 391/* print out version */