Mercurial > pidgin
comparison plugins/icq/gaim_icq.c @ 1698:4c3bcc579e71
[gaim-migrate @ 1708]
fixing more segfaults due to null handlers.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 11 Apr 2001 20:33:48 +0000 |
parents | 352f05feb0d1 |
children | 1e0613d9526b |
comparison
equal
deleted
inserted
replaced
1697:23ad4f7b644f | 1698:4c3bcc579e71 |
---|---|
234 serv_got_im(gc, who, what, 0); | 234 serv_got_im(gc, who, what, 0); |
235 g_free(who); | 235 g_free(who); |
236 g_free(what); | 236 g_free(what); |
237 } | 237 } |
238 | 238 |
239 static void icq_req_not(struct icq_link *link, unsigned long id, int type, int arg, void *data) { | |
240 if (type == ICQ_NOTIFY_FAILED) | |
241 do_error_dialog("Failure in sending packet", "ICQ error"); | |
242 return; | |
243 } | |
244 | |
239 static void icq_login(struct aim_user *user) { | 245 static void icq_login(struct aim_user *user) { |
240 struct gaim_connection *gc = new_gaim_conn(user); | 246 struct gaim_connection *gc = new_gaim_conn(user); |
241 struct icq_data *id = gc->proto_data = g_new0(struct icq_data, 1); | 247 struct icq_data *id = gc->proto_data = g_new0(struct icq_data, 1); |
242 ICQLINK *link; | 248 ICQLINK *link; |
243 char ps[9]; | 249 char ps[9]; |
260 link->icq_UserStatusUpdate = icq_user_status; | 266 link->icq_UserStatusUpdate = icq_user_status; |
261 link->icq_InfoReply = icq_info_reply; | 267 link->icq_InfoReply = icq_info_reply; |
262 link->icq_WrongPassword = icq_wrong_passwd; | 268 link->icq_WrongPassword = icq_wrong_passwd; |
263 link->icq_InvalidUIN = icq_invalid_uin; | 269 link->icq_InvalidUIN = icq_invalid_uin; |
264 link->icq_Log = icq_do_log; | 270 link->icq_Log = icq_do_log; |
271 link->icq_RequestNotify = icq_req_not; | |
265 | 272 |
266 icq_ContactClear(id->link); | 273 icq_ContactClear(id->link); |
267 if (bud_list_cache_exists(gc)) | 274 if (bud_list_cache_exists(gc)) |
268 do_import(NULL, gc); | 275 do_import(NULL, gc); |
269 | 276 |