comparison 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
comparison
equal deleted inserted replaced
5492:a75a952d78db 5493:3e8487580024
995 995
996 id->liststr = g_string_append(id->liststr, word_eol[4]); 996 id->liststr = g_string_append(id->liststr, word_eol[4]);
997 } 997 }
998 998
999 static void 999 static void
1000 irc_change_nick(void *a, char *b) { 1000 irc_change_nick(const char *b, void *a) {
1001 struct gaim_connection *gc = a; 1001 struct gaim_connection *gc = a;
1002 struct irc_data *id = gc->proto_data; 1002 struct irc_data *id = gc->proto_data;
1003 char buf[IRC_BUF_LEN]; 1003 char buf[IRC_BUF_LEN];
1004 g_snprintf(buf, sizeof(buf), "NICK %s\r\n", b); 1004 g_snprintf(buf, sizeof(buf), "NICK %s\r\n", b);
1005 irc_write(id->fd, buf, strlen(buf)); 1005 irc_write(id->fd, buf, strlen(buf));
1109 case 481: /* ERR_NOPRIVILEGES */ 1109 case 481: /* ERR_NOPRIVILEGES */
1110 gaim_notify_error(gc, NULL, _("You're not an IRC operator!"), 1110 gaim_notify_error(gc, NULL, _("You're not an IRC operator!"),
1111 _("IRC Error")); 1111 _("IRC Error"));
1112 break; 1112 break;
1113 case 433: 1113 case 433:
1114 do_prompt_dialog(_("That nick is already in use. Please enter a new nick"), gc->displayname, gc, irc_change_nick, NULL); 1114 gaim_request_input(gc, NULL, _("That nick is already in use. "
1115 "Please enter a new nick"),
1116 NULL, gc->displayname, FALSE,
1117 _("OK"), G_CALLBACK(irc_change_nick),
1118 _("Cancel"), NULL, gc);
1115 break; 1119 break;
1116 default: 1120 default:
1117 /* Other error messages */ 1121 /* Other error messages */
1118 if (n > 400 && n < 502) { 1122 if (n > 400 && n < 502) {
1119 char errmsg[IRC_BUF_LEN]; 1123 char errmsg[IRC_BUF_LEN];