# HG changeset patch # User Luke Schierer # Date 1048434869 0 # Node ID cb5bb2972a4b3d529e5166ac79edce7ad60eaaa9 # Parent e6dbac19a8d5e7400c7a7b34ccfd5e9bea80b2c0 [gaim-migrate @ 5203] James Vega (jamessan) writes: "Currently, when people login or logout when an IM window is open, this is reported to the window. This happens regardless of whether the 'Show logins in window' option is checked. The patch adds the extra checks to make sure this option works correctly." committer: Tailor Script diff -r e6dbac19a8d5 -r cb5bb2972a4b src/server.c --- a/src/server.c Sun Mar 23 07:59:44 2003 +0000 +++ b/src/server.c Sun Mar 23 15:54:29 2003 +0000 @@ -904,7 +904,7 @@ if (loggedin) { if (!b->present == 1) { struct gaim_conversation *c = gaim_find_conversation(b->name); - if (c) { + if (c && (im_options & OPT_IM_LOGON)) { char *tmp = g_strdup_printf(_("%s logged in."), gaim_get_buddy_alias(b)); gaim_conversation_write(c, NULL, tmp, -1, WFLAG_SYSTEM, time(NULL)); @@ -928,7 +928,7 @@ } else { if (b->present == 1) { struct gaim_conversation *c = gaim_find_conversation(b->name); - if (c) { + if (c && (im_options & OPT_IM_LOGON)) { char *tmp = g_strdup_printf(_("%s logged out."), gaim_get_buddy_alias(b)); gaim_conversation_write(c, NULL, tmp, -1, WFLAG_SYSTEM, time(NULL));