# HG changeset patch
# User Etan Reisner <pidgin@unreliablesource.net>
# Date 1127966706 0
# Node ID c66b972519e80a8cde7ad4e41ed930e1de7a5ed7
# Parent  b7d9d00a4ef9eb951c8185b01a692326dfb96154
[gaim-migrate @ 13845]
This makes invites to password protected chatrooms to work for me. People who care should test their servers.

committer: Tailor Script <tailor@pidgin.im>

diff -r b7d9d00a4ef9 -r c66b972519e8 src/protocols/jabber/message.c
--- a/src/protocols/jabber/message.c	Wed Sep 28 12:44:35 2005 +0000
+++ b/src/protocols/jabber/message.c	Thu Sep 29 04:05:06 2005 +0000
@@ -335,7 +335,7 @@
 						g_free(jm->body);
 						jm->body = xmlnode_get_data(reason);
 					}
-					if((password = xmlnode_get_child(invite, "password")))
+					if((password = xmlnode_get_child(child, "password")))
 						jm->password = xmlnode_get_data(password);
 
 					jm->type = JABBER_MESSAGE_GROUPCHAT_INVITE;