ayttm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ayttm-commits] CVS: ayttm/src chat_room.c,1.33,1.34


From: Colin Leroy <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/src chat_room.c,1.33,1.34
Date: Thu, 16 Jan 2003 09:22:48 -0500

Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv11891/src

Modified Files:
        chat_room.c 
Log Message:
a better fix for the chat_room segfaults


Index: chat_room.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/chat_room.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- chat_room.c 16 Jan 2003 13:49:09 -0000      1.33
+++ chat_room.c 16 Jan 2003 14:22:40 -0000      1.34
@@ -501,7 +501,7 @@
 {
        eb_chat_room * ecr = data;
        RUN_SERVICE(ecr->chat_room_account)->leave_chat_room(ecr);
-       chat_rooms = g_list_remove_link(chat_rooms, data);
+       chat_rooms = g_list_remove(chat_rooms, data);
        g_free(ecr);
 }
 
@@ -547,7 +547,7 @@
        strcpy( ecrb->handle, handle );
 
        for (t = room->fellows; t && t->data; t = t->next) {
-               if(!strcmp(handle, ((eb_chat_room_buddy *)t->data)->handle))
+               if(!strcasecmp(handle, ((eb_chat_room_buddy *)t->data)->handle))
                        return;
        }
 
@@ -574,7 +574,7 @@
                eb_chat_room_buddy * ecrb = node->data;
                eb_account *ea = find_account_by_handle(ecrb->handle, 
room->service_id);
                eb_chat_room_display_status (ea, NULL);
-               room->fellows = g_list_remove_link(room->fellows, node);
+               room->fellows = g_list_remove(room->fellows, ecrb);
                g_free(ecrb);
        }
        eb_chat_room_refresh_list(room);
@@ -1082,7 +1082,7 @@
                        if (!ecr->typing_fellows || 
!g_list_find(ecr->typing_fellows, remote))
                                ecr->typing_fellows = 
g_list_append(ecr->typing_fellows, remote);
                } else if (ecr->typing_fellows) {
-                       ecr->typing_fellows = 
g_list_remove_link(ecr->typing_fellows, remote);
+                       ecr->typing_fellows = 
g_list_remove(ecr->typing_fellows, remote);
                }
                
                for (walk2 = ecr->typing_fellows; walk2 && walk2->data; walk2 = 
walk2->next) {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]