diff options
Diffstat (limited to 'vchat-commands.c')
-rwxr-xr-x | vchat-commands.c | 11 |
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 */ |
28 | char *vchat_cm_version = "$Id$"; | 28 | char *vchat_cm_version = "$Id$"; |
29 | 29 | ||
30 | /* from vchat-client.c */ | ||
31 | extern int ownquit; | ||
32 | |||
30 | /* our "/command " table */ | 33 | /* our "/command " table */ |
31 | enum { | 34 | enum { |
32 | COMMAND_VERSION, | 35 | COMMAND_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 */ |