changeset 27654:eeeb82903ef8

Prevent users from being added to the conference before they accept the invitation
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Thu, 16 Jul 2009 15:13:57 +0000
parents 7c055118a010
children 13bacaad01aa
files libpurple/protocols/yahoo/yahoochat.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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: