# HG changeset patch # User Sulabh Mahajan # Date 1247757237 0 # Node ID eeeb82903ef8f236087dc297812a190271d537c0 # Parent 7c055118a010fb361e773ec9f53317315ca67d24 Prevent users from being added to the conference before they accept the invitation diff -r 7c055118a010 -r eeeb82903ef8 libpurple/protocols/yahoo/yahoochat.c --- a/libpurple/protocols/yahoo/yahoochat.c Thu Jul 16 14:45:26 2009 +0000 +++ b/libpurple/protocols/yahoo/yahoochat.c Thu Jul 16 15:13:57 2009 +0000 @@ -160,8 +160,11 @@ who = pair->value; g_string_append_printf(members, "%s\n", who); break; - case 52: /* invitee (me) */ - case 53: /* members */ + case 51: /* This user is being invited to the conference. Comes with status = 11, so we wont reach here */ + break; + case 52: /* Invited users. Assuming us invited, since we got this packet */ + break; /* break needed, or else we add the users to the conference before they accept the invitation */ + case 53: /* members who have already joined the conference */ g_string_append_printf(members, "%s\n", pair->value); break; case 58: