changeset 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 23ad4f7b644f
children 644056e095f1
files plugins/icq/gaim_icq.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/icq/gaim_icq.c	Wed Apr 11 04:36:21 2001 +0000
+++ b/plugins/icq/gaim_icq.c	Wed Apr 11 20:33:48 2001 +0000
@@ -236,6 +236,12 @@
 	g_free(what);
 }
 
+static void icq_req_not(struct icq_link *link, unsigned long id, int type, int arg, void *data) {
+	if (type == ICQ_NOTIFY_FAILED)
+		do_error_dialog("Failure in sending packet", "ICQ error");
+	return;
+}
+
 static void icq_login(struct aim_user *user) {
 	struct gaim_connection *gc = new_gaim_conn(user);
 	struct icq_data *id = gc->proto_data = g_new0(struct icq_data, 1);
@@ -262,6 +268,7 @@
 	link->icq_WrongPassword = icq_wrong_passwd;
 	link->icq_InvalidUIN = icq_invalid_uin;
 	link->icq_Log = icq_do_log;
+	link->icq_RequestNotify = icq_req_not;
 
 	icq_ContactClear(id->link);
 	if (bud_list_cache_exists(gc))