Mercurial > pidgin
comparison src/protocols/msn/state.c @ 10908:0317ad172e8d
[gaim-migrate @ 12640]
Fix Fedora bug 149849 - Gaim's msn will fail to connect if you set it to
"away" while connecting
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Mon, 09 May 2005 12:43:52 +0000 |
parents | bcfea6c3d5c9 |
children | c824e39db0e7 |
comparison
equal
deleted
inserted
replaced
10907:4f5fa4cc7eb4 | 10908:0317ad172e8d |
---|---|
50 g_return_if_fail(session->notification != NULL); | 50 g_return_if_fail(session->notification != NULL); |
51 | 51 |
52 cmdproc = session->notification->cmdproc; | 52 cmdproc = session->notification->cmdproc; |
53 user = session->user; | 53 user = session->user; |
54 state_text = msn_state_get_text(state); | 54 state_text = msn_state_get_text(state); |
55 session->state = state; | |
56 | |
57 /* If we're not logged in yet, don't send the status to the server, | |
58 * it will be sent when login completes | |
59 */ | |
60 if (!session->logged_in) | |
61 return; | |
55 | 62 |
56 msnobj = msn_user_get_object(user); | 63 msnobj = msn_user_get_object(user); |
57 | 64 |
58 if (msnobj == NULL) | 65 if (msnobj == NULL) |
59 { | 66 { |
66 | 73 |
67 msnobj_str = msn_object_to_string(msnobj); | 74 msnobj_str = msn_object_to_string(msnobj); |
68 | 75 |
69 msn_cmdproc_send(cmdproc, "CHG", "%s %d %s", state_text, | 76 msn_cmdproc_send(cmdproc, "CHG", "%s %d %s", state_text, |
70 MSN_CLIENT_ID, gaim_url_encode(msnobj_str)); | 77 MSN_CLIENT_ID, gaim_url_encode(msnobj_str)); |
71 | |
72 /* | |
73 * We need to set this just in case someone tries to set icon | |
74 * quickly on us - Justin | |
75 */ | |
76 session->state = state; | |
77 | 78 |
78 g_free(msnobj_str); | 79 g_free(msnobj_str); |
79 } | 80 } |
80 } | 81 } |
81 | 82 |