Mercurial > pidgin
comparison src/buddy.c @ 3104:1b8b05f76ae9
[gaim-migrate @ 3118]
Aliased Logged in / Logged out messages. Thanks Andrew Echols!
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 28 Mar 2002 19:58:58 +0000 |
parents | 0f54285a2271 |
children | 319a66fc131f |
comparison
equal
deleted
inserted
replaced
3103:0f54285a2271 | 3104:1b8b05f76ae9 |
---|---|
2172 bs->log_timer = gtk_timeout_add(10000, (GtkFunction)log_timeout, bs); | 2172 bs->log_timer = gtk_timeout_add(10000, (GtkFunction)log_timeout, bs); |
2173 if ((bs->sound != 2) && (im_options & OPT_IM_LOGON)) { | 2173 if ((bs->sound != 2) && (im_options & OPT_IM_LOGON)) { |
2174 struct conversation *c = find_conversation(b->name); | 2174 struct conversation *c = find_conversation(b->name); |
2175 if (c) { | 2175 if (c) { |
2176 char tmp[1024]; | 2176 char tmp[1024]; |
2177 g_snprintf(tmp, sizeof(tmp), _("%s logged in."), b->name); | 2177 g_snprintf(tmp, sizeof(tmp), _("%s logged in."), b->show); |
2178 write_to_conv(c, tmp, WFLAG_SYSTEM, NULL, time(NULL), -1); | 2178 write_to_conv(c, tmp, WFLAG_SYSTEM, NULL, time(NULL), -1); |
2179 } else if (clistqueue && find_queue_total_by_name(b->name)) { | 2179 } else if (clistqueue && find_queue_total_by_name(b->name)) { |
2180 struct queued_message *qm = g_new0(struct queued_message, 1); | 2180 struct queued_message *qm = g_new0(struct queued_message, 1); |
2181 g_snprintf(qm->name, sizeof(qm->name), "%s", b->name); | 2181 g_snprintf(qm->name, sizeof(qm->name), "%s", b->name); |
2182 qm->message = g_strdup_printf(_("%s logged in."), b->name); | 2182 qm->message = g_strdup_printf(_("%s logged in."), b->show); |
2183 qm->gc = gc; | 2183 qm->gc = gc; |
2184 qm->tm = time(NULL); | 2184 qm->tm = time(NULL); |
2185 qm->flags = WFLAG_SYSTEM; | 2185 qm->flags = WFLAG_SYSTEM; |
2186 qm->len = -1; | 2186 qm->len = -1; |
2187 message_queue = g_slist_append(message_queue, qm); | 2187 message_queue = g_slist_append(message_queue, qm); |
2236 gdk_bitmap_unref(bm); | 2236 gdk_bitmap_unref(bm); |
2237 if ((bs->sound != 1) && (im_options & OPT_IM_LOGON)) { | 2237 if ((bs->sound != 1) && (im_options & OPT_IM_LOGON)) { |
2238 struct conversation *c = find_conversation(b->name); | 2238 struct conversation *c = find_conversation(b->name); |
2239 if (c) { | 2239 if (c) { |
2240 char tmp[1024]; | 2240 char tmp[1024]; |
2241 g_snprintf(tmp, sizeof(tmp), _("%s logged out."), b->name); | 2241 g_snprintf(tmp, sizeof(tmp), _("%s logged out."), b->show); |
2242 write_to_conv(c, tmp, WFLAG_SYSTEM, NULL, time(NULL), -1); | 2242 write_to_conv(c, tmp, WFLAG_SYSTEM, NULL, time(NULL), -1); |
2243 } else if (clistqueue && find_queue_total_by_name(b->name)) { | 2243 } else if (clistqueue && find_queue_total_by_name(b->name)) { |
2244 struct queued_message *qm = g_new0(struct queued_message, 1); | 2244 struct queued_message *qm = g_new0(struct queued_message, 1); |
2245 g_snprintf(qm->name, sizeof(qm->name), "%s", b->name); | 2245 g_snprintf(qm->name, sizeof(qm->name), "%s", b->name); |
2246 qm->message = g_strdup_printf(_("%s logged out."), b->name); | 2246 qm->message = g_strdup_printf(_("%s logged out."), b->show); |
2247 qm->gc = gc; | 2247 qm->gc = gc; |
2248 qm->tm = time(NULL); | 2248 qm->tm = time(NULL); |
2249 qm->flags = WFLAG_SYSTEM; | 2249 qm->flags = WFLAG_SYSTEM; |
2250 qm->len = -1; | 2250 qm->len = -1; |
2251 message_queue = g_slist_append(message_queue, qm); | 2251 message_queue = g_slist_append(message_queue, qm); |