From: Luke S. <lsc...@us...> - 2004-12-15 20:53:55
|
Update of /cvsroot/gaim/gaim/src/protocols/jabber In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30101/src/protocols/jabber Modified Files: presence.c Log Message: some white space fixes for gtkblist.c Nathan, the changes to jabber probly are not the right fix, but they stop gaim from crashing on exit here. please look this over. Index: presence.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/jabber/presence.c,v retrieving revision 1.62 retrieving revision 1.63 diff -u -d -p -r1.62 -r1.63 --- presence.c 1 Dec 2004 05:41:12 -0000 1.62 +++ presence.c 15 Dec 2004 20:53:44 -0000 1.63 @@ -89,14 +89,20 @@ void jabber_presence_fake_to_self(Jabber void jabber_presence_send(GaimAccount *account, GaimStatus *status) { - GaimConnection *gc = account->gc; - JabberStream *js = gc->proto_data; + GaimConnection *gc = NULL; + JabberStream *js = NULL; xmlnode *presence, *x, *photo; char *stripped = NULL; const char *msg; JabberBuddyState state; int priority; + if(!account) return ; + gc = account->gc; + + if(!gc) return ; + js= gc->proto_data; + gaim_status_to_jabber(status, &state, &msg, &priority); if(msg) |