Mercurial > pidgin.yaz
comparison libfaim/aim_rxhandlers.c @ 1186:c00fc3adfd66
[gaim-migrate @ 1196]
mostly libfaim updates, and a fix for something i broke in the import dialog.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 02 Dec 2000 18:41:58 +0000 |
parents | efcacae6acdb |
children | 920c86b753d7 |
comparison
equal
deleted
inserted
replaced
1185:47cf56b72d4b | 1186:c00fc3adfd66 |
---|---|
226 struct aim_rxcblist_t *cur; | 226 struct aim_rxcblist_t *cur; |
227 | 227 |
228 if (!conn) | 228 if (!conn) |
229 return -1; | 229 return -1; |
230 | 230 |
231 cur = conn->handlerlist; | 231 for (cur = conn->handlerlist; cur; ) { |
232 while(cur) { | |
233 struct aim_rxcblist_t *tmp; | 232 struct aim_rxcblist_t *tmp; |
234 | 233 |
235 tmp = cur->next; | 234 tmp = cur->next; |
236 free(cur); | 235 free(cur); |
237 cur = tmp; | 236 cur = tmp; |
238 } | 237 } |
238 conn->handlerlist = NULL; | |
239 | 239 |
240 return 0; | 240 return 0; |
241 } | 241 } |
242 | 242 |
243 faim_internal rxcallback_t aim_callhandler(struct aim_conn_t *conn, | 243 faim_internal rxcallback_t aim_callhandler(struct aim_conn_t *conn, |
779 * Chat hack. | 779 * Chat hack. |
780 * | 780 * |
781 */ | 781 */ |
782 userfunc = aim_callhandler(command->conn, 0x0001, 0x0005); | 782 userfunc = aim_callhandler(command->conn, 0x0001, 0x0005); |
783 if (userfunc) | 783 if (userfunc) |
784 ret = userfunc(sess, command, serviceid, ip, cookie, sess->pendingjoin); | 784 ret = userfunc(sess, command, serviceid, ip, cookie, sess->pendingjoin, (int)sess->pendingjoinexchange); |
785 free(sess->pendingjoin); | 785 free(sess->pendingjoin); |
786 sess->pendingjoin = NULL; | 786 sess->pendingjoin = NULL; |
787 sess->pendingjoinexchange = 0; | |
787 } | 788 } |
788 else | 789 else |
789 { | 790 { |
790 userfunc = aim_callhandler(command->conn, 0x0001, 0x0005); | 791 userfunc = aim_callhandler(command->conn, 0x0001, 0x0005); |
791 if (userfunc) | 792 if (userfunc) |