diff src/protocols/jabber/presence.c @ 7835:4ed0c93816f6

[gaim-migrate @ 8488] what the hell was I thinking? oh, and whitespace fixen for the ChangeLog committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 12 Dec 2003 01:41:14 +0000
parents 8bba34c04c9d
children ddd80ffd3815
line wrap: on
line diff
--- a/src/protocols/jabber/presence.c	Fri Dec 12 00:14:40 2003 +0000
+++ b/src/protocols/jabber/presence.c	Fri Dec 12 01:41:14 2003 +0000
@@ -145,7 +145,7 @@
 	JabberID *jid;
 	JabberChat *chat;
 	JabberBuddy *jb;
-	JabberBuddyResource *jbr = FALSE;
+	JabberBuddyResource *jbr = NULL;
 	GaimBuddy *b;
 	char *buddy_name;
 	int state = 0;
@@ -351,10 +351,7 @@
 					status);
 		}
 
-		if(!jbr)
-			jbr = jabber_buddy_find_resource(jb, jid->resource);
-
-		if(jbr)
+		if((jbr = jabber_buddy_find_resource(jb, NULL)))
 			serv_got_update(js->gc, buddy_name, 1, 0, b->signon, b->idle,
 					jbr->state);
 		else