diff src/protocols/irc/irc.c @ 5493:3e8487580024

[gaim-migrate @ 5889] Everything is now moved to the new gaim_request_input(). committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 22 May 2003 20:50:30 +0000
parents ad445074d239
children cce2d7868c78
line wrap: on
line diff
--- a/src/protocols/irc/irc.c	Thu May 22 20:50:05 2003 +0000
+++ b/src/protocols/irc/irc.c	Thu May 22 20:50:30 2003 +0000
@@ -997,7 +997,7 @@
 }
 
 static void 
-irc_change_nick(void *a, char *b) {
+irc_change_nick(const char *b, void *a) {
 	struct gaim_connection *gc = a;
 	struct irc_data *id = gc->proto_data;
 	char buf[IRC_BUF_LEN];	
@@ -1111,7 +1111,11 @@
 						  _("IRC Error"));
 		break;		
 	case 433:
-		do_prompt_dialog(_("That nick is already in use.  Please enter a new nick"), gc->displayname, gc, irc_change_nick, NULL);
+		gaim_request_input(gc, NULL, _("That nick is already in use.  "
+									   "Please enter a new nick"),
+						   NULL, gc->displayname, FALSE,
+						   _("OK"), G_CALLBACK(irc_change_nick),
+						   _("Cancel"), NULL, gc);
 		break;
 	default:
 		/* Other error messages */