src/protocols/msn/session.c

changeset 10225
0dfea1bc8695
parent 10112
3133c5f8eb10
child 10275
186d84a66cc3
equal deleted inserted replaced
10224:71c4a2f741b2 10225:0dfea1bc8695
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

mercurial