really and truly enforce the no-presence-before-roster thing

Sun, 17 Jun 2007 05:14:45 +0000

author
Nathan Walp <nwalp@pidgin.im>
date
Sun, 17 Jun 2007 05:14:45 +0000
changeset 18226
adf83935e838
parent 18225
a3474f978167
child 18227
d9332822e803
child 18233
32e258000a57

really and truly enforce the no-presence-before-roster thing

libpurple/protocols/jabber/presence.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/jabber/presence.c	Sun Jun 17 05:10:35 2007 +0000
+++ b/libpurple/protocols/jabber/presence.c	Sun Jun 17 05:14:45 2007 +0000
@@ -120,6 +120,12 @@
 	gc = purple_account_get_connection(account);
 	js = gc->proto_data;
 
+	/* we don't want to send presence before we've gotten our roster */
+	if(!js->roster_parsed) {
+		purple_debug_info("jabber", "attempt to send presence before roster retrieved\n");
+		return;
+	}
+
 	purple_status_to_jabber(status, &state, &stripped, &priority);
 
 

mercurial