comparison src/protocols/irc/cmds.c @ 13837:1a095ac881ce

[gaim-migrate @ 16286] When the /quit command is used on IRC, we disconnect the account. This avoids having Gaim think the server kicked us offline. And it avoids Gaim auto-reconnecting. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 19 Jun 2006 06:27:18 +0000
parents 879f90dbd21f
children 1a862fb5e713
comparison
equal deleted inserted replaced
13836:9af607a0108f 13837:1a095ac881ce
370 buf = irc_format(irc, "v:", "QUIT", (args && args[0]) ? args[0] : IRC_DEFAULT_QUIT); 370 buf = irc_format(irc, "v:", "QUIT", (args && args[0]) ? args[0] : IRC_DEFAULT_QUIT);
371 irc_send(irc, buf); 371 irc_send(irc, buf);
372 g_free(buf); 372 g_free(buf);
373 373
374 irc->quitting = TRUE; 374 irc->quitting = TRUE;
375
376 gaim_account_set_status(irc->account, "offline", TRUE, NULL);
375 } 377 }
376 378
377 return 0; 379 return 0;
378 } 380 }
379 381