Mercurial > pidgin.yaz
diff src/server.c @ 8884:dd6b4f259f5b
[gaim-migrate @ 9653]
Eradicate "Show logins in window"
Sorry if these commit emails piss you off
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 06 May 2004 05:10:15 +0000 |
parents | 25344c2d74c4 |
children | cd22788db30c |
line wrap: on
line diff
--- a/src/server.c Thu May 06 05:03:05 2004 +0000 +++ b/src/server.c Thu May 06 05:10:15 2004 +0000 @@ -1150,26 +1150,23 @@ if (signing_on) { - if (gaim_prefs_get_bool("/core/conversations/im/show_login")) { - if (c != NULL) { - - char *tmp = g_strdup_printf(_("%s logged in."), - gaim_get_buddy_alias(b)); + if (c != NULL) { + char *tmp = g_strdup_printf(_("%s logged in."), + gaim_get_buddy_alias(b)); - gaim_conversation_write(c, NULL, tmp, GAIM_MESSAGE_SYSTEM, - time(NULL)); - g_free(tmp); - } - else if (awayqueue && find_queue_total_by_name(b->name)) { - struct queued_message *qm = g_new0(struct queued_message, 1); - g_snprintf(qm->name, sizeof(qm->name), "%s", b->name); - qm->message = g_strdup_printf(_("%s logged in."), - gaim_get_buddy_alias(b)); - qm->account = gc->account; - qm->tm = time(NULL); - qm->flags = GAIM_MESSAGE_SYSTEM; - message_queue = g_slist_append(message_queue, qm); - } + gaim_conversation_write(c, NULL, tmp, GAIM_MESSAGE_SYSTEM, + time(NULL)); + g_free(tmp); + } + else if (awayqueue && find_queue_total_by_name(b->name)) { + struct queued_message *qm = g_new0(struct queued_message, 1); + g_snprintf(qm->name, sizeof(qm->name), "%s", b->name); + qm->message = g_strdup_printf(_("%s logged in."), + gaim_get_buddy_alias(b)); + qm->account = gc->account; + qm->tm = time(NULL); + qm->flags = GAIM_MESSAGE_SYSTEM; + message_queue = g_slist_append(message_queue, qm); } gaim_sound_play_event(GAIM_SOUND_BUDDY_ARRIVE); @@ -1234,24 +1231,21 @@ } if (signing_off) { - if (gaim_prefs_get_bool("/core/conversations/im/show_login")) { - if (c != NULL) { - - char *tmp = g_strdup_printf(_("%s logged out."), - gaim_get_buddy_alias(b)); - gaim_conversation_write(c, NULL, tmp, - GAIM_MESSAGE_SYSTEM, time(NULL)); - g_free(tmp); - } else if (awayqueue && find_queue_total_by_name(b->name)) { - struct queued_message *qm = g_new0(struct queued_message, 1); - g_snprintf(qm->name, sizeof(qm->name), "%s", b->name); - qm->message = g_strdup_printf(_("%s logged out."), - gaim_get_buddy_alias(b)); - qm->account = gc->account; - qm->tm = time(NULL); - qm->flags = GAIM_MESSAGE_SYSTEM; - message_queue = g_slist_append(message_queue, qm); - } + if (c != NULL) { + char *tmp = g_strdup_printf(_("%s logged out."), + gaim_get_buddy_alias(b)); + gaim_conversation_write(c, NULL, tmp, + GAIM_MESSAGE_SYSTEM, time(NULL)); + g_free(tmp); + } else if (awayqueue && find_queue_total_by_name(b->name)) { + struct queued_message *qm = g_new0(struct queued_message, 1); + g_snprintf(qm->name, sizeof(qm->name), "%s", b->name); + qm->message = g_strdup_printf(_("%s logged out."), + gaim_get_buddy_alias(b)); + qm->account = gc->account; + qm->tm = time(NULL); + qm->flags = GAIM_MESSAGE_SYSTEM; + message_queue = g_slist_append(message_queue, qm); } serv_got_typing_stopped(gc, name); /* obviously not typing */ gaim_sound_play_event(GAIM_SOUND_BUDDY_LEAVE);