Mercurial > pidgin
annotate src/protocols/msn/session.c @ 9098:9ebde9d3a622
[gaim-migrate @ 9875]
(19:41:44) stu|laptop: oh... LSchiere: would it be good to include
ChangeLog.API in EXTRA_DIST?
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Thu, 27 May 2004 23:55:27 +0000 |
parents | ffecda0c1f45 |
children | c30d81b4dd22 |
rev | line source |
---|---|
5309 | 1 /** |
2 * @file session.c MSN session functions | |
3 * | |
4 * gaim | |
5 * | |
8475
06f57183e29f
[gaim-migrate @ 9208]
Christian Hammond <chipx86@chipx86.com>
parents:
8171
diff
changeset
|
6 * Copyright (C) 2003-2004 Christian Hammond <chipx86@gnupdate.org> |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
7 * |
5309 | 8 * This program is free software; you can redistribute it and/or modify |
9 * it under the terms of the GNU General Public License as published by | |
10 * the Free Software Foundation; either version 2 of the License, or | |
11 * (at your option) any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, | |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 * GNU General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU General Public License | |
19 * along with this program; if not, write to the Free Software | |
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
21 */ | |
22 #include "msn.h" | |
23 #include "session.h" | |
7288
ff9127038a5a
[gaim-migrate @ 7869]
Christian Hammond <chipx86@chipx86.com>
parents:
6827
diff
changeset
|
24 #include "notification.h" |
5309 | 25 |
26 MsnSession * | |
5564
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5518
diff
changeset
|
27 msn_session_new(GaimAccount *account, const char *server, int port) |
5309 | 28 { |
29 MsnSession *session; | |
30 | |
31 g_return_val_if_fail(account != NULL, NULL); | |
32 | |
33 session = g_new0(MsnSession, 1); | |
34 | |
35 session->account = account; | |
36 session->dispatch_server = g_strdup(server); | |
37 session->dispatch_port = port; | |
38 | |
7590
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
39 session->away_state = NULL; |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
40 |
5518
bf2a7a7b739d
[gaim-migrate @ 5918]
Christian Hammond <chipx86@chipx86.com>
parents:
5427
diff
changeset
|
41 session->users = msn_users_new(); |
bf2a7a7b739d
[gaim-migrate @ 5918]
Christian Hammond <chipx86@chipx86.com>
parents:
5427
diff
changeset
|
42 session->groups = msn_groups_new(); |
5309 | 43 |
6738
6c95f01aaf49
[gaim-migrate @ 7270]
Christian Hammond <chipx86@chipx86.com>
parents:
6726
diff
changeset
|
44 #ifdef HAVE_SSL |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
45 session->protocol_ver = 9; |
6726
3c234b619685
[gaim-migrate @ 7253]
Christian Hammond <chipx86@chipx86.com>
parents:
6701
diff
changeset
|
46 #else |
3c234b619685
[gaim-migrate @ 7253]
Christian Hammond <chipx86@chipx86.com>
parents:
6701
diff
changeset
|
47 session->protocol_ver = 7; |
3c234b619685
[gaim-migrate @ 7253]
Christian Hammond <chipx86@chipx86.com>
parents:
6701
diff
changeset
|
48 #endif |
6701
b7e113a59b51
[gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents:
5564
diff
changeset
|
49 |
5309 | 50 return session; |
51 } | |
52 | |
53 void | |
54 msn_session_destroy(MsnSession *session) | |
55 { | |
56 g_return_if_fail(session != NULL); | |
57 | |
58 if (session->connected) | |
59 msn_session_disconnect(session); | |
60 | |
61 if (session->dispatch_server != NULL) | |
62 g_free(session->dispatch_server); | |
63 | |
64 while (session->switches != NULL) | |
65 msn_switchboard_destroy(session->switches->data); | |
66 | |
67 while (session->lists.forward) | |
8661
060171053a32
[gaim-migrate @ 9413]
Christian Hammond <chipx86@chipx86.com>
parents:
8583
diff
changeset
|
68 { |
060171053a32
[gaim-migrate @ 9413]
Christian Hammond <chipx86@chipx86.com>
parents:
8583
diff
changeset
|
69 MsnUser *user = (MsnUser *)session->lists.forward->data; |
060171053a32
[gaim-migrate @ 9413]
Christian Hammond <chipx86@chipx86.com>
parents:
8583
diff
changeset
|
70 |
060171053a32
[gaim-migrate @ 9413]
Christian Hammond <chipx86@chipx86.com>
parents:
8583
diff
changeset
|
71 msn_user_destroy(user); |
060171053a32
[gaim-migrate @ 9413]
Christian Hammond <chipx86@chipx86.com>
parents:
8583
diff
changeset
|
72 |
060171053a32
[gaim-migrate @ 9413]
Christian Hammond <chipx86@chipx86.com>
parents:
8583
diff
changeset
|
73 session->lists.forward = g_slist_remove(session->lists.forward, user); |
060171053a32
[gaim-migrate @ 9413]
Christian Hammond <chipx86@chipx86.com>
parents:
8583
diff
changeset
|
74 } |
5309 | 75 |
6827
1cfbb731aa1f
[gaim-migrate @ 7372]
Christian Hammond <chipx86@chipx86.com>
parents:
6779
diff
changeset
|
76 if (session->lists.allow != NULL) |
1cfbb731aa1f
[gaim-migrate @ 7372]
Christian Hammond <chipx86@chipx86.com>
parents:
6779
diff
changeset
|
77 g_slist_free(session->lists.allow); |
1cfbb731aa1f
[gaim-migrate @ 7372]
Christian Hammond <chipx86@chipx86.com>
parents:
6779
diff
changeset
|
78 |
1cfbb731aa1f
[gaim-migrate @ 7372]
Christian Hammond <chipx86@chipx86.com>
parents:
6779
diff
changeset
|
79 if (session->lists.block != NULL) |
1cfbb731aa1f
[gaim-migrate @ 7372]
Christian Hammond <chipx86@chipx86.com>
parents:
6779
diff
changeset
|
80 g_slist_free(session->lists.block); |
5309 | 81 |
5518
bf2a7a7b739d
[gaim-migrate @ 5918]
Christian Hammond <chipx86@chipx86.com>
parents:
5427
diff
changeset
|
82 msn_groups_destroy(session->groups); |
5309 | 83 msn_users_destroy(session->users); |
84 | |
6827
1cfbb731aa1f
[gaim-migrate @ 7372]
Christian Hammond <chipx86@chipx86.com>
parents:
6779
diff
changeset
|
85 if (session->passport_info.kv != NULL) |
1cfbb731aa1f
[gaim-migrate @ 7372]
Christian Hammond <chipx86@chipx86.com>
parents:
6779
diff
changeset
|
86 g_free(session->passport_info.kv); |
1cfbb731aa1f
[gaim-migrate @ 7372]
Christian Hammond <chipx86@chipx86.com>
parents:
6779
diff
changeset
|
87 |
1cfbb731aa1f
[gaim-migrate @ 7372]
Christian Hammond <chipx86@chipx86.com>
parents:
6779
diff
changeset
|
88 if (session->passport_info.sid != NULL) |
1cfbb731aa1f
[gaim-migrate @ 7372]
Christian Hammond <chipx86@chipx86.com>
parents:
6779
diff
changeset
|
89 g_free(session->passport_info.sid); |
1cfbb731aa1f
[gaim-migrate @ 7372]
Christian Hammond <chipx86@chipx86.com>
parents:
6779
diff
changeset
|
90 |
1cfbb731aa1f
[gaim-migrate @ 7372]
Christian Hammond <chipx86@chipx86.com>
parents:
6779
diff
changeset
|
91 if (session->passport_info.mspauth != NULL) |
1cfbb731aa1f
[gaim-migrate @ 7372]
Christian Hammond <chipx86@chipx86.com>
parents:
6779
diff
changeset
|
92 g_free(session->passport_info.mspauth); |
1cfbb731aa1f
[gaim-migrate @ 7372]
Christian Hammond <chipx86@chipx86.com>
parents:
6779
diff
changeset
|
93 |
1cfbb731aa1f
[gaim-migrate @ 7372]
Christian Hammond <chipx86@chipx86.com>
parents:
6779
diff
changeset
|
94 if (session->passport_info.file != NULL) |
1cfbb731aa1f
[gaim-migrate @ 7372]
Christian Hammond <chipx86@chipx86.com>
parents:
6779
diff
changeset
|
95 g_free(session->passport_info.file); |
5427 | 96 |
7590
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
97 if (session->away_state != NULL) |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
98 g_free(session->away_state); |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
99 |
8171
d0ba2f7b40e7
[gaim-migrate @ 8884]
Christian Hammond <chipx86@chipx86.com>
parents:
7590
diff
changeset
|
100 if (session->nexus != NULL) |
d0ba2f7b40e7
[gaim-migrate @ 8884]
Christian Hammond <chipx86@chipx86.com>
parents:
7590
diff
changeset
|
101 msn_nexus_destroy(session->nexus); |
d0ba2f7b40e7
[gaim-migrate @ 8884]
Christian Hammond <chipx86@chipx86.com>
parents:
7590
diff
changeset
|
102 |
5309 | 103 g_free(session); |
104 } | |
105 | |
106 gboolean | |
107 msn_session_connect(MsnSession *session) | |
108 { | |
109 g_return_val_if_fail(session != NULL, FALSE); | |
110 g_return_val_if_fail(!session->connected, TRUE); | |
111 | |
112 session->connected = TRUE; | |
113 | |
8831
ffecda0c1f45
[gaim-migrate @ 9595]
Christian Hammond <chipx86@chipx86.com>
parents:
8808
diff
changeset
|
114 session->notification_conn = msn_notification_new(session); |
5309 | 115 |
8831
ffecda0c1f45
[gaim-migrate @ 9595]
Christian Hammond <chipx86@chipx86.com>
parents:
8808
diff
changeset
|
116 if (msn_notification_connect(session->notification_conn, |
8583
fc27237783ee
[gaim-migrate @ 9333]
Christian Hammond <chipx86@chipx86.com>
parents:
8499
diff
changeset
|
117 session->dispatch_server, |
fc27237783ee
[gaim-migrate @ 9333]
Christian Hammond <chipx86@chipx86.com>
parents:
8499
diff
changeset
|
118 session->dispatch_port)) |
8831
ffecda0c1f45
[gaim-migrate @ 9595]
Christian Hammond <chipx86@chipx86.com>
parents:
8808
diff
changeset
|
119 { |
ffecda0c1f45
[gaim-migrate @ 9595]
Christian Hammond <chipx86@chipx86.com>
parents:
8808
diff
changeset
|
120 return TRUE; |
7288
ff9127038a5a
[gaim-migrate @ 7869]
Christian Hammond <chipx86@chipx86.com>
parents:
6827
diff
changeset
|
121 } |
5309 | 122 |
123 return FALSE; | |
124 } | |
125 | |
126 void | |
127 msn_session_disconnect(MsnSession *session) | |
128 { | |
129 g_return_if_fail(session != NULL); | |
130 g_return_if_fail(session->connected); | |
131 | |
132 while (session->switches != NULL) { | |
133 MsnSwitchBoard *board = (MsnSwitchBoard *)session->switches->data; | |
134 | |
135 msn_switchboard_destroy(board); | |
136 } | |
137 | |
138 if (session->notification_conn != NULL) { | |
139 msn_servconn_destroy(session->notification_conn); | |
140 session->notification_conn = NULL; | |
141 } | |
142 } | |
143 | |
144 MsnSwitchBoard * | |
145 msn_session_open_switchboard(MsnSession *session) | |
146 { | |
147 MsnSwitchBoard *swboard; | |
8808
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8661
diff
changeset
|
148 MsnCmdProc *cmdproc; |
5309 | 149 |
150 g_return_val_if_fail(session != NULL, NULL); | |
151 | |
8808
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8661
diff
changeset
|
152 cmdproc = session->notification_conn->cmdproc; |
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8661
diff
changeset
|
153 |
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8661
diff
changeset
|
154 msn_cmdproc_send(cmdproc, "XFR", "%s", "SB"); |
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8661
diff
changeset
|
155 |
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8661
diff
changeset
|
156 if (cmdproc->error) |
5309 | 157 return NULL; |
158 | |
159 swboard = msn_switchboard_new(session); | |
160 | |
161 return swboard; | |
162 } | |
163 | |
7590
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
164 gboolean |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
165 msn_session_change_status(MsnSession *session, const char *state) |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
166 { |
8808
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8661
diff
changeset
|
167 MsnCmdProc *cmdproc; |
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8661
diff
changeset
|
168 MsnUser *user; |
7590
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
169 MsnObject *msnobj; |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
170 |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
171 g_return_val_if_fail(session != NULL, FALSE); |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
172 g_return_val_if_fail(state != NULL, FALSE); |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
173 |
8808
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8661
diff
changeset
|
174 user = session->user; |
7590
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
175 msnobj = msn_user_get_object(user); |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
176 |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
177 if (state != session->away_state) |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
178 { |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
179 if (session->away_state != NULL) |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
180 g_free(session->away_state); |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
181 |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
182 session->away_state = g_strdup(state); |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
183 } |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
184 |
8808
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8661
diff
changeset
|
185 cmdproc = session->notification_conn->cmdproc; |
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8661
diff
changeset
|
186 |
7590
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
187 if (msnobj == NULL) |
8808
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8661
diff
changeset
|
188 { |
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8661
diff
changeset
|
189 msn_cmdproc_send(cmdproc, "CHG", "%s %d", state, MSN_CLIENT_ID); |
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8661
diff
changeset
|
190 } |
7590
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
191 else |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
192 { |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
193 char *msnobj_str = msn_object_to_string(msnobj); |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
194 |
8808
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8661
diff
changeset
|
195 msn_cmdproc_send(cmdproc, "CHG", "%s %d %s", state, MSN_CLIENT_ID, |
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8661
diff
changeset
|
196 gaim_url_encode(msnobj_str)); |
7590
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
197 |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
198 g_free(msnobj_str); |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
199 } |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
200 |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
201 return TRUE; |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
202 } |
3a48ade4f510
[gaim-migrate @ 8208]
Christian Hammond <chipx86@chipx86.com>
parents:
7288
diff
changeset
|
203 |
5309 | 204 MsnSwitchBoard * |
205 msn_session_find_switch_with_passport(const MsnSession *session, | |
206 const char *passport) | |
207 { | |
208 GList *l; | |
209 MsnSwitchBoard *swboard; | |
210 | |
211 g_return_val_if_fail(session != NULL, NULL); | |
212 g_return_val_if_fail(passport != NULL, NULL); | |
213 | |
8499
467b01d02f9c
[gaim-migrate @ 9235]
Christian Hammond <chipx86@chipx86.com>
parents:
8475
diff
changeset
|
214 for (l = session->switches; l != NULL; l = l->next) |
467b01d02f9c
[gaim-migrate @ 9235]
Christian Hammond <chipx86@chipx86.com>
parents:
8475
diff
changeset
|
215 { |
5309 | 216 swboard = (MsnSwitchBoard *)l->data; |
217 | |
8499
467b01d02f9c
[gaim-migrate @ 9235]
Christian Hammond <chipx86@chipx86.com>
parents:
8475
diff
changeset
|
218 if (!swboard->hidden && !swboard->chat_id && |
5351
2aa7e4237142
[gaim-migrate @ 5727]
Christian Hammond <chipx86@chipx86.com>
parents:
5318
diff
changeset
|
219 !g_ascii_strcasecmp(passport, |
8499
467b01d02f9c
[gaim-migrate @ 9235]
Christian Hammond <chipx86@chipx86.com>
parents:
8475
diff
changeset
|
220 msn_user_get_passport(swboard->user))) |
467b01d02f9c
[gaim-migrate @ 9235]
Christian Hammond <chipx86@chipx86.com>
parents:
8475
diff
changeset
|
221 { |
5309 | 222 return swboard; |
223 } | |
224 } | |
225 | |
226 return NULL; | |
227 } | |
228 | |
229 MsnSwitchBoard * | |
230 msn_session_find_switch_with_id(const MsnSession *session, int chat_id) | |
231 { | |
232 GList *l; | |
233 MsnSwitchBoard *swboard; | |
234 | |
235 g_return_val_if_fail(session != NULL, NULL); | |
236 g_return_val_if_fail(chat_id > 0, NULL); | |
237 | |
238 for (l = session->switches; l != NULL; l = l->next) { | |
239 swboard = (MsnSwitchBoard *)l->data; | |
240 | |
241 if (swboard->chat_id == chat_id) | |
242 return swboard; | |
243 } | |
244 | |
245 return NULL; | |
246 } | |
247 | |
248 MsnSwitchBoard * | |
249 msn_session_find_unused_switch(const MsnSession *session) | |
250 { | |
251 GList *l; | |
252 MsnSwitchBoard *swboard; | |
253 | |
254 g_return_val_if_fail(session != NULL, NULL); | |
255 | |
256 for (l = session->switches; l != NULL; l = l->next) { | |
257 swboard = (MsnSwitchBoard *)l->data; | |
258 | |
5354
8a74fbcb7bcb
[gaim-migrate @ 5730]
Christian Hammond <chipx86@chipx86.com>
parents:
5351
diff
changeset
|
259 if (!swboard->in_use) |
5309 | 260 return swboard; |
261 } | |
262 | |
263 return NULL; | |
264 } |