comparison src/protocols/icq/gaim_icq.c @ 4245:cd84b0fd63fc

[gaim-migrate @ 4495] Now, shut up and leave me alone. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Wed, 08 Jan 2003 05:52:17 +0000
parents 474265997752
children 9c7fcb211886
comparison
equal deleted inserted replaced
4244:091e9db94ebc 4245:cd84b0fd63fc
274 274
275 iqnew = g_memdup(iq, sizeof(struct icq_auth)); 275 iqnew = g_memdup(iq, sizeof(struct icq_auth));
276 iqnew->nick = g_strdup(iq->nick); 276 iqnew->nick = g_strdup(iq->nick);
277 277
278 g_snprintf(msg, sizeof(msg), "Add %ld to your buddy list?", iq->uin); 278 g_snprintf(msg, sizeof(msg), "Add %ld to your buddy list?", iq->uin);
279 do_ask_dialog(msg, NULL, iqnew, _("Add"), icq_add_after_auth, _("Cancel"), icq_den_auth); 279 do_ask_dialog(msg, NULL, iqnew, _("Add"), icq_add_after_auth, _("Cancel"), icq_den_auth, FALSE);
280 icq_den_auth(iq); 280 icq_den_auth(iq);
281 } 281 }
282 282
283 static void icq_auth_req(icq_Link *link, unsigned long uin, unsigned char hour, unsigned char minute, 283 static void icq_auth_req(icq_Link *link, unsigned long uin, unsigned char hour, unsigned char minute,
284 unsigned char day, unsigned char month, unsigned short year, const char *nick, 284 unsigned char day, unsigned char month, unsigned short year, const char *nick,
292 iq->gc = link->icq_UserData; 292 iq->gc = link->icq_UserData;
293 293
294 g_snprintf(msg, sizeof(msg), "The user %s (%s%s%s%s%s) wants you to authorize them.", 294 g_snprintf(msg, sizeof(msg), "The user %s (%s%s%s%s%s) wants you to authorize them.",
295 nick, first ? first : "", first && last ? " " : "", last ? last : "", 295 nick, first ? first : "", first && last ? " " : "", last ? last : "",
296 (first || last) && email ? ", " : "", email ? email : ""); 296 (first || last) && email ? ", " : "", email ? email : "");
297 do_ask_dialog(msg, NULL, iq, _("Authorize"), icq_acc_auth, _("Deny"), icq_den_auth); 297 do_ask_dialog(msg, NULL, iq, _("Authorize"), icq_acc_auth, _("Deny"), icq_den_auth, FALSE);
298 } 298 }
299 299
300 static void icq_login(struct aim_user *user) { 300 static void icq_login(struct aim_user *user) {
301 struct gaim_connection *gc = new_gaim_conn(user); 301 struct gaim_connection *gc = new_gaim_conn(user);
302 struct icq_data *id = gc->proto_data = g_new0(struct icq_data, 1); 302 struct icq_data *id = gc->proto_data = g_new0(struct icq_data, 1);