comparison src/buddy_chat.c @ 3517:6b0cb60162f4

[gaim-migrate @ 3590] Rob McQueen added a mute feature to his nice little docklet. I added a queuing feature. Configure the docklet in the plugins dialog to queue unread messages, and when you receive a message the docklet will eat it up and show a little message pending icon. Click on it, and read your message. ICQ people will like it. I also made plugin_event use a va_list. I bet this breaks perl. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 16 Sep 2002 08:35:24 +0000
parents cfbdfe334975
children bdd0bebd2d04
comparison
equal deleted inserted replaced
3516:db00eb77997d 3517:6b0cb60162f4
953 { 953 {
954 char *name = g_strdup(buddy); 954 char *name = g_strdup(buddy);
955 char tmp[BUF_LONG]; 955 char tmp[BUF_LONG];
956 int pos; 956 int pos;
957 957
958 plugin_event(event_chat_buddy_join, b->gc, (void *)b->id, name, 0); 958 plugin_event(event_chat_buddy_join, b->gc, b->id, name);
959 b->in_room = g_list_insert_sorted(b->in_room, name, insertname); 959 b->in_room = g_list_insert_sorted(b->in_room, name, insertname);
960 pos = g_list_index(b->in_room, name); 960 pos = g_list_index(b->in_room, name);
961 961
962 add_chat_buddy_common(b, name, pos); 962 add_chat_buddy_common(b, name, pos);
963 963
1046 GList *names = b->in_room; 1046 GList *names = b->in_room;
1047 GList *items = GTK_LIST(b->list)->children; 1047 GList *items = GTK_LIST(b->list)->children;
1048 1048
1049 char tmp[BUF_LONG]; 1049 char tmp[BUF_LONG];
1050 1050
1051 plugin_event(event_chat_buddy_leave, b->gc, (void *)b->id, buddy, 0); 1051 plugin_event(event_chat_buddy_leave, b->gc, b->id, buddy);
1052 1052
1053 while (names) { 1053 while (names) {
1054 if (!g_strcasecmp((char *)names->data, buddy)) { 1054 if (!g_strcasecmp((char *)names->data, buddy)) {
1055 char *tmp = names->data; 1055 char *tmp = names->data;
1056 b->in_room = g_list_remove(b->in_room, names->data); 1056 b->in_room = g_list_remove(b->in_room, names->data);