comparison src/server.c @ 6405:96de6d9eb422

[gaim-migrate @ 6910] Added a new unseen type: GAIM_CONV_UNSEEN_EVENT. Now window closing, timing out, logins, logouts, etc. (any of those black bold messages) grey the tab instead of the tab looking like someone talked in it. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 07 Aug 2003 01:09:38 +0000
parents e9974608b319
children 601c2a52d74a
comparison
equal deleted inserted replaced
6404:db32fee4fa69 6405:96de6d9eb422
1081 if (!GAIM_BUDDY_IS_ONLINE(b)) { 1081 if (!GAIM_BUDDY_IS_ONLINE(b)) {
1082 if (gaim_prefs_get_bool("/core/conversations/im/show_login")) { 1082 if (gaim_prefs_get_bool("/core/conversations/im/show_login")) {
1083 if (c != NULL) { 1083 if (c != NULL) {
1084 1084
1085 char *tmp = g_strdup_printf(_("%s logged in."), 1085 char *tmp = g_strdup_printf(_("%s logged in."),
1086 gaim_get_buddy_alias(b)); 1086 gaim_get_buddy_alias(b));
1087 1087
1088 gaim_conversation_write(c, NULL, tmp, -1, 1088 gaim_conversation_write(c, NULL, tmp, -1, WFLAG_SYSTEM,
1089 WFLAG_SYSTEM, time(NULL)); 1089 time(NULL));
1090 g_free(tmp); 1090 g_free(tmp);
1091 } 1091 }
1092 else if (awayqueue && find_queue_total_by_name(b->name)) { 1092 else if (awayqueue && find_queue_total_by_name(b->name)) {
1093 struct queued_message *qm = g_new0(struct queued_message, 1); 1093 struct queued_message *qm = g_new0(struct queued_message, 1);
1094 g_snprintf(qm->name, sizeof(qm->name), "%s", b->name); 1094 g_snprintf(qm->name, sizeof(qm->name), "%s", b->name);
1095 qm->message = g_strdup_printf(_("%s logged in."), 1095 qm->message = g_strdup_printf(_("%s logged in."),
1096 gaim_get_buddy_alias(b)); 1096 gaim_get_buddy_alias(b));
1097 qm->account = gc->account; 1097 qm->account = gc->account;
1098 qm->tm = time(NULL); 1098 qm->tm = time(NULL);
1099 qm->flags = WFLAG_SYSTEM; 1099 qm->flags = WFLAG_SYSTEM;
1100 qm->len = -1; 1100 qm->len = -1;
1101 message_queue = g_slist_append(message_queue, qm); 1101 message_queue = g_slist_append(message_queue, qm);
1110 1110
1111 if (gaim_prefs_get_bool("/core/conversations/im/show_login")) { 1111 if (gaim_prefs_get_bool("/core/conversations/im/show_login")) {
1112 if (c != NULL) { 1112 if (c != NULL) {
1113 1113
1114 char *tmp = g_strdup_printf(_("%s logged out."), 1114 char *tmp = g_strdup_printf(_("%s logged out."),
1115 gaim_get_buddy_alias(b)); 1115 gaim_get_buddy_alias(b));
1116 gaim_conversation_write(c, NULL, tmp, -1, 1116 gaim_conversation_write(c, NULL, tmp, -1,
1117 WFLAG_SYSTEM, time(NULL)); 1117 WFLAG_SYSTEM, time(NULL));
1118 g_free(tmp); 1118 g_free(tmp);
1119 } else if (awayqueue && find_queue_total_by_name(b->name)) { 1119 } else if (awayqueue && find_queue_total_by_name(b->name)) {
1120 struct queued_message *qm = g_new0(struct queued_message, 1); 1120 struct queued_message *qm = g_new0(struct queued_message, 1);
1121 g_snprintf(qm->name, sizeof(qm->name), "%s", b->name); 1121 g_snprintf(qm->name, sizeof(qm->name), "%s", b->name);
1122 qm->message = g_strdup_printf(_("%s logged out."), 1122 qm->message = g_strdup_printf(_("%s logged out."),
1123 gaim_get_buddy_alias(b)); 1123 gaim_get_buddy_alias(b));
1124 qm->account = gc->account; 1124 qm->account = gc->account;
1125 qm->tm = time(NULL); 1125 qm->tm = time(NULL);
1126 qm->flags = WFLAG_SYSTEM; 1126 qm->flags = WFLAG_SYSTEM;
1127 qm->len = -1; 1127 qm->len = -1;
1128 message_queue = g_slist_append(message_queue, qm); 1128 message_queue = g_slist_append(message_queue, qm);