comparison src/protocols/irc/irc.c @ 5498:cce2d7868c78

[gaim-migrate @ 5894] Bye bye do_ask_dialog()! Mwahahahahhaha! And wit -> with. What wit with the witty with wit comment, wit you jutht thaw. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 23 May 2003 02:42:52 +0000
parents 3e8487580024
children f6650bfe4f51
comparison
equal deleted inserted replaced
5497:3c7748b24410 5498:cce2d7868c78
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(const char *b, void *a) { 1000 irc_change_nick(void *a, const char *b) {
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));
1435 dccchat->gc = gc; 1435 dccchat->gc = gc;
1436 g_snprintf(dccchat->ip_address, sizeof(dccchat->ip_address), chat_args[3]); 1436 g_snprintf(dccchat->ip_address, sizeof(dccchat->ip_address), chat_args[3]);
1437 dccchat->port=atoi(chat_args[4]); 1437 dccchat->port=atoi(chat_args[4]);
1438 g_snprintf(dccchat->nick, sizeof(dccchat->nick), nick); 1438 g_snprintf(dccchat->nick, sizeof(dccchat->nick), nick);
1439 g_snprintf(ask, sizeof(ask), _("%s would like to establish a DCC chat"), nick); 1439 g_snprintf(ask, sizeof(ask), _("%s would like to establish a DCC chat"), nick);
1440 do_ask_dialog(ask, _("This requires a direct connection to be established between the two computers. Messages sent will not pass through the IRC server"), dccchat, _("Connect"), dcc_chat_init, _("Cancel"), dcc_chat_cancel, my_protocol->handle, FALSE); 1440
1441 gaim_request_action(gc, NULL, ask,
1442 _("This requires a direct connection to be "
1443 "established between the two computers. "
1444 "Messages sent will not pass through the "
1445 "IRC server"), 0, dccchat, 2,
1446 _("Connect"), G_CALLBACK(dcc_chat_init),
1447 _("Cancel"), G_CALLBACK(dcc_chat_cancel));
1441 } 1448 }
1442 else if (!g_ascii_strncasecmp(msg, "DCC SEND", 8)) { 1449 else if (!g_ascii_strncasecmp(msg, "DCC SEND", 8)) {
1443 struct gaim_xfer *xfer; 1450 struct gaim_xfer *xfer;
1444 char **send_args; 1451 char **send_args;
1445 char *ip, *filename; 1452 char *ip, *filename;