comparison libgaim/protocols/msn/state.c @ 14391:6e89bfd2b33f

[gaim-migrate @ 17098] I don't think PRPLs should need to make sure that proto_data is valid in the set_idle() callback. Some of my idle changes on the 23rd added that requirement. This removes the requirement to make things the way they were before. I'm also reverting SVN revision 17005 from faceprint and 17009 from marv_sf. Those revisions fixed the PRPLs so they wouldn't crash if set_idle() was called before the acocunt was fully connected. But that shouldn't be needed any more. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 31 Aug 2006 09:02:10 +0000
parents 60b1bc8dbf37
children e354528c4163
comparison
equal deleted inserted replaced
14390:d4a26ada1971 14391:6e89bfd2b33f
39 }; 39 };
40 40
41 void 41 void
42 msn_change_status(MsnSession *session) 42 msn_change_status(MsnSession *session)
43 { 43 {
44 GaimAccount *account = session->account; 44 GaimAccount *account;
45 MsnCmdProc *cmdproc; 45 MsnCmdProc *cmdproc;
46 MsnUser *user; 46 MsnUser *user;
47 MsnObject *msnobj; 47 MsnObject *msnobj;
48 const char *state_text; 48 const char *state_text;
49 49
50 g_return_if_fail(session != NULL); 50 g_return_if_fail(session != NULL);
51 g_return_if_fail(session->notification != NULL); 51 g_return_if_fail(session->notification != NULL);
52 52
53 account = session->account;
53 cmdproc = session->notification->cmdproc; 54 cmdproc = session->notification->cmdproc;
54 user = session->user; 55 user = session->user;
55 state_text = msn_state_get_text(msn_state_from_account(account)); 56 state_text = msn_state_get_text(msn_state_from_account(account));
56 57
57 /* If we're not logged in yet, don't send the status to the server, 58 /* If we're not logged in yet, don't send the status to the server,