From: Sean E. <sea...@us...> - 2005-03-01 21:16:51
|
Update of /cvsroot/gaim/gaim/src/protocols/jabber In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28219/protocols/jabber Modified Files: presence.c Log Message: Made IRC, Jabber, MSN, and ICQ not crash on login. Note that these don't necessarily work the way they should yet, they just don't crash. Index: presence.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/jabber/presence.c,v retrieving revision 1.66 retrieving revision 1.67 diff -u -d -p -r1.66 -r1.67 --- presence.c 30 Jan 2005 17:19:57 -0000 1.66 +++ presence.c 1 Mar 2005 21:15:56 -0000 1.67 @@ -102,10 +102,13 @@ void jabber_presence_send(GaimAccount *a if(!account) return ; gc = account->gc; - - if(!gc) return ; + + if (!gc && strcmp(gaim_status_get_id(status), "offline")) + gaim_account_connect(account, status); + + if(!gc) return; js= gc->proto_data; - + gaim_status_to_jabber(status, &state, &msg, &priority); if(msg) |