comparison src/protocols/irc/irc.c @ 2299:b5b7dece5249

[gaim-migrate @ 2309] wee committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 17 Sep 2001 19:22:21 +0000
parents 57da45349e50
children 171d11fb37b9
comparison
equal deleted inserted replaced
2298:57da45349e50 2299:b5b7dece5249
740 c->gc = NULL; 740 c->gc = NULL;
741 g_snprintf(outbuf, sizeof(outbuf), _("You have been kicked from %s: %s"), 741 g_snprintf(outbuf, sizeof(outbuf), _("You have been kicked from %s: %s"),
742 word[3], *word_eol[5] == ':' ? word_eol[5] + 1: word_eol[5]); 742 word[3], *word_eol[5] == ':' ? word_eol[5] + 1: word_eol[5]);
743 do_error_dialog(outbuf, _("IRC Error")); 743 do_error_dialog(outbuf, _("IRC Error"));
744 } else 744 } else
745 irc_rem_chat_bud(gc, nick); 745 irc_rem_chat_bud(gc, word[4]);
746 } else if (!strcmp(cmd, "KILL")) { /* */ 746 } else if (!strcmp(cmd, "KILL")) { /* */
747 } else if (!strcmp(cmd, "MODE")) { 747 } else if (!strcmp(cmd, "MODE")) {
748 handle_mode(gc, word, word_eol, FALSE); 748 handle_mode(gc, word, word_eol, FALSE);
749 } else if (!strcmp(cmd, "NICK")) { 749 } else if (!strcmp(cmd, "NICK")) {
750 char *new = *word_eol[3] == ':' ? word_eol[3] + 1 : word_eol[3]; 750 char *new = *word_eol[3] == ':' ? word_eol[3] + 1 : word_eol[3];
1222 char *name, *pass; 1222 char *name, *pass;
1223 1223
1224 if (!data) 1224 if (!data)
1225 return; 1225 return;
1226 name = data->data; 1226 name = data->data;
1227 if (data->next) 1227 if (data->next) {
1228 pass = data->next->data; 1228 pass = data->next->data;
1229
1230 if (data->next)
1231 g_snprintf(buf, sizeof(buf), "JOIN %s %s\r\n", name, pass); 1229 g_snprintf(buf, sizeof(buf), "JOIN %s %s\r\n", name, pass);
1232 else 1230 } else
1233 g_snprintf(buf, sizeof(buf), "JOIN %s\r\n", name); 1231 g_snprintf(buf, sizeof(buf), "JOIN %s\r\n", name);
1234 irc_write(id->fd, buf, strlen(buf)); 1232 irc_write(id->fd, buf, strlen(buf));
1235 } 1233 }
1236 1234
1237 static void irc_chat_leave(struct gaim_connection *gc, int id) 1235 static void irc_chat_leave(struct gaim_connection *gc, int id)