When a XMPP password protected room is already set up in a window, and the account is logged back in, Pidgin tries to log into the room without a password and fails with a "Not Authorized" error. Double-clicking on the room in the Buddy List will log into the room properly.

This bug seems to crop up on a specific set of criteria, but given that the situation happens often (at least for me), it is still annoying. I hiberate my laptop often and go on ×××, so it comes up every time the network is re-connected.

Steps to Reproduce (100% reproducible on my side):

1. Log into password-protected XMPP chat room.
2. Keep room window open.
3. Disable account or disconnect Internet connection
4. Enable account or re-connect Internet connection
5. Error occurs when Pidgin attempts to relog into room.

Relevant debug lines (with added line breaks):

(09:23:23) jabber: Sending (ssl) ([email protected]/spark): 
1
(09:23:23) jabber: Recv (ssl)(393): 1
...
(09:23:53) gtkconv: setting active conversation on toolbar 0A3EE998
(09:23:53) jabber: Sending (ssl) ([email protected]/spark): 
1password
(09:23:53) jabber: Recv (ssl)(419): 1
(09:23:53) jabber: Sending (ssl) ([email protected]/spark): 
(09:23:53) jabber: Recv (ssl)(462): 1
...

Note the difference between the two presence requests. The first one does not send out a password via XML, and the second one does (which was the manual double-click into the room). So, Pidgin is clearly not sending the password out when it should.