summaryrefslogtreecommitdiff
path: root/vchat-commands.c
diff options
context:
space:
mode:
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 */