Mercurial > pidgin
comparison src/protocols/msn/session.c @ 10225:ecf3ce2e2ab1
[gaim-migrate @ 11357]
This is mostly a patch from Felipe Contreras that eliminates MSN switchboard
errors and fixes MSN buddy icon syncronization, with some tweaks by me.
Thank Felipe if it works, blame me if something broke.
I also fixed a couple of text markup escaping things, fixed a glib warning that
was bugging me, fix a rare SILC crash, and make gtkstatusselector.c compile
(but do nothing) with gtk < 2.4
committer: Tailor Script <tailor@pidgin.im>
| author | Stu Tomlinson <stu@nosnilmot.com> |
|---|---|
| date | Sun, 21 Nov 2004 17:48:09 +0000 |
| parents | 1a91e814e9d8 |
| children | d9468bd22b7c |
comparison
equal
deleted
inserted
replaced
| 10224:ef7f9e69f03e | 10225:ecf3ce2e2ab1 |
|---|---|
| 129 if (session->notification != NULL) | 129 if (session->notification != NULL) |
| 130 msn_notification_disconnect(session->notification); | 130 msn_notification_disconnect(session->notification); |
| 131 } | 131 } |
| 132 | 132 |
| 133 /* TODO: This must go away when conversation is redesigned */ | 133 /* TODO: This must go away when conversation is redesigned */ |
| 134 | |
| 135 MsnSwitchBoard * | 134 MsnSwitchBoard * |
| 136 msn_session_find_swboard(MsnSession *session, const char *username) | 135 msn_session_find_swboard(MsnSession *session, const char *username) |
| 137 { | 136 { |
| 138 GList *l; | 137 GList *l; |
| 139 | 138 |
| 183 swboard = msn_session_find_swboard(session, username); | 182 swboard = msn_session_find_swboard(session, username); |
| 184 | 183 |
| 185 if (swboard == NULL) | 184 if (swboard == NULL) |
| 186 { | 185 { |
| 187 swboard = msn_switchboard_new(session); | 186 swboard = msn_switchboard_new(session); |
| 187 swboard->im_user = g_strdup(username); | |
| 188 msn_switchboard_request(swboard); | 188 msn_switchboard_request(swboard); |
| 189 msn_switchboard_request_add_user(swboard, username); | 189 msn_switchboard_request_add_user(swboard, username); |
| 190 swboard->im_user = g_strdup(username); | |
| 191 } | 190 } |
| 192 | 191 |
| 193 return swboard; | 192 return swboard; |
| 194 } | 193 } |
| 195 | 194 |
