Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/presence.c @ 17439:3919c68eb5b7
don't do unneeded work
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 28 May 2007 21:37:06 +0000 |
parents | d5293baaed11 |
children | 95affacf6f82 d495103dcf88 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c Mon May 28 20:54:51 2007 +0000 +++ b/libpurple/protocols/jabber/presence.c Mon May 28 21:37:06 2007 +0000 @@ -106,11 +106,12 @@ return; disconnected = purple_account_is_disconnected(account); - primitive = purple_status_type_get_primitive(purple_status_get_type(status)); if(disconnected) return; + primitive = purple_status_type_get_primitive(purple_status_get_type(status)); + gc = purple_account_get_connection(account); js = gc->proto_data;