changeset 4873:cb5bb2972a4b

[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 <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 23 Mar 2003 15:54:29 +0000
parents e6dbac19a8d5
children f98467b35b95
files src/server.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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));