Mercurial > pidgin.yaz
comparison src/server.c @ 5554:7b36d02031a2
[gaim-migrate @ 5955]
More work done... Got some painful stuff to do now.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 30 May 2003 00:00:48 +0000 |
parents | 7a64114641c3 |
children | b7319c094153 |
comparison
equal
deleted
inserted
replaced
5553:c0593bcdd5d6 | 5554:7b36d02031a2 |
---|---|
985 * We're not away. This is easy. If the convo window doesn't | 985 * We're not away. This is easy. If the convo window doesn't |
986 * exist, create and update it (if it does exist it was updated | 986 * exist, create and update it (if it does exist it was updated |
987 * earlier), then play a sound indicating we've received it and | 987 * earlier), then play a sound indicating we've received it and |
988 * then display it. Easy. | 988 * then display it. Easy. |
989 */ | 989 */ |
990 #if 0 | 990 |
991 /* XXX This is never TRUE, since nothing sets OPT_AWAY_QUEUE_UNREAD */ | 991 /* XXX UGLY HACK OF THE YEAR |
992 if (away_options & OPT_AWAY_QUEUE_UNREAD && | 992 * Robot101 will fix this after his exams. honest. |
993 !gaim_find_conversation(name) && docklet_count) { | 993 */ |
994 | 994 if (docklet_count && |
995 gaim_prefs_get_bool("/plugins/gtk/docklet/queue_unread") && | |
996 !gaim_find_conversation(name)) { | |
995 /* | 997 /* |
996 * We're gonna queue it up and wait for the user to ask for | 998 * We're gonna queue it up and wait for the user to ask for |
997 * it... probably by clicking the docklet or windows tray icon. | 999 * it... probably by clicking the docklet or windows tray icon. |
998 */ | 1000 */ |
999 struct queued_message *qm; | 1001 struct queued_message *qm; |
1005 qm->flags = away | WFLAG_RECV; | 1007 qm->flags = away | WFLAG_RECV; |
1006 qm->len = len; | 1008 qm->len = len; |
1007 unread_message_queue = g_slist_append(unread_message_queue, qm); | 1009 unread_message_queue = g_slist_append(unread_message_queue, qm); |
1008 } | 1010 } |
1009 else { | 1011 else { |
1010 #endif | |
1011 if (cnv == NULL) | 1012 if (cnv == NULL) |
1012 cnv = gaim_conversation_new(GAIM_CONV_IM, gc->account, name); | 1013 cnv = gaim_conversation_new(GAIM_CONV_IM, gc->account, name); |
1013 | 1014 |
1014 gaim_im_write(GAIM_IM(cnv), NULL, message, len, | 1015 gaim_im_write(GAIM_IM(cnv), NULL, message, len, |
1015 away | WFLAG_RECV, mtime); | 1016 away | WFLAG_RECV, mtime); |
1016 gaim_window_flash(gaim_conversation_get_window(cnv)); | 1017 gaim_window_flash(gaim_conversation_get_window(cnv)); |
1017 #if 0 | 1018 } |
1018 } | |
1019 #endif | |
1020 } | 1019 } |
1021 | 1020 |
1022 gaim_event_broadcast(event_im_displayed_rcvd, gc, name, message, flags, mtime); | 1021 gaim_event_broadcast(event_im_displayed_rcvd, gc, name, message, flags, mtime); |
1023 g_free(name); | 1022 g_free(name); |
1024 g_free(message); | 1023 g_free(message); |