comparison src/protocols/irc/cmds.c @ 11763:ddb7520d57bd

[gaim-migrate @ 14054] sf patch #1328104, from Will Thompson His patch actually changed the prpl preference for IRC Quit messages into an account preference. I applied his changes... but I commented out the account preference part (so the IRC quit message is no longer customizable). We'll see how this goes committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 23 Oct 2005 21:07:29 +0000
parents 17142948653e
children 39734dd473e0
comparison
equal deleted inserted replaced
11762:81e26b7f262e 11763:ddb7520d57bd
363 int irc_cmd_quit(struct irc_conn *irc, const char *cmd, const char *target, const char **args) 363 int irc_cmd_quit(struct irc_conn *irc, const char *cmd, const char *target, const char **args)
364 { 364 {
365 char *buf; 365 char *buf;
366 366
367 if (!irc->quitting) { 367 if (!irc->quitting) {
368 buf = irc_format(irc, "v:", "QUIT", (args && args[0]) ? args[0] : gaim_prefs_get_string("/plugins/prpl/irc/quitmsg")); 368 /*
369 * Use gaim_account_get_string(irc->account, "quitmsg", IRC_DEFAULT_QUIT)
370 * and uncomment the appropriate account preference in irc.c if we
371 * decide we want custom quit messages.
372 */
373 buf = irc_format(irc, "v:", "QUIT", (args && args[0]) ? args[0] : IRC_DEFAULT_QUIT);
369 irc_send(irc, buf); 374 irc_send(irc, buf);
370 g_free(buf); 375 g_free(buf);
371 376
372 irc->quitting = TRUE; 377 irc->quitting = TRUE;
373 } 378 }