comparison src/protocols/irc/irc.c @ 3427:8fa61405af2b

[gaim-migrate @ 3453] Who never commits anything *now*, Etan? I changed most of the error message text around. If you think any of it should be different, just let me know, or send a patch. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 25 Aug 2002 10:51:24 +0000
parents ba398df4c0b0
children 12202a328adf
comparison
equal deleted inserted replaced
3426:ccbcc11a68c2 3427:8fa61405af2b
820 break; 820 break;
821 case 376: 821 case 376:
822 irc_request_buddy_update(gc); 822 irc_request_buddy_update(gc);
823 break; 823 break;
824 case 401: 824 case 401:
825 do_error_dialog(_("No such nick/channel"), _("IRC Error")); 825 do_error_dialog(_("There is no such nick or channel on this IRC channel."), NULL, GAIM_ERROR);
826 break; 826 break;
827 case 402: 827 case 402:
828 do_error_dialog(_("No such server"), _("IRC Error")); 828 do_error_dialog(_("There is no such IRC Server"), NULL, GAIM_ERROR);
829 case 431: 829 case 431:
830 do_error_dialog(_("No nickname given"), _("IRC Error")); 830 do_error_dialog(_("No IRC nickname given"), NULL, GAIM_ERROR);
831 break; 831 break;
832 } 832 }
833 } 833 }
834 834
835 static gboolean is_channel(struct gaim_connection *gc, char *name) 835 static gboolean is_channel(struct gaim_connection *gc, char *name)
1066 struct conversation *c = irc_find_chat(gc, word[3]); 1066 struct conversation *c = irc_find_chat(gc, word[3]);
1067 if (!c) 1067 if (!c)
1068 return FALSE; 1068 return FALSE;
1069 gc->buddy_chats = g_slist_remove(gc->buddy_chats, c); 1069 gc->buddy_chats = g_slist_remove(gc->buddy_chats, c);
1070 c->gc = NULL; 1070 c->gc = NULL;
1071 g_snprintf(outbuf, sizeof(outbuf), _("You have been kicked from %s: %s"), 1071 g_snprintf(outbuf, sizeof(outbuf), _("You have been kicked from %s:"),
1072 word[3], *word_eol[5] == ':' ? word_eol[5] + 1 : word_eol[5]); 1072 word[3]);
1073 do_error_dialog(outbuf, _("IRC Error")); 1073 do_error_dialog(outbuf, *word_eol[5] == ':' ? word_eol[5] + 1 : word_eol[5], GAIM_INFO);
1074 } else { 1074 } else {
1075 char *reason = *word_eol[5] == ':' ? word_eol[5] + 1 : word_eol[5]; 1075 char *reason = *word_eol[5] == ':' ? word_eol[5] + 1 : word_eol[5];
1076 char *msg = g_strdup_printf(_("Kicked by %s: %s"), nick, reason); 1076 char *msg = g_strdup_printf(_("Kicked by %s: %s"), nick, reason);
1077 irc_rem_chat_bud(gc, word[4], msg); 1077 irc_rem_chat_bud(gc, word[4], msg);
1078 g_free(msg); 1078 g_free(msg);
1577 irc_write(id->fd, buf, strlen(buf)); 1577 irc_write(id->fd, buf, strlen(buf));
1578 if (c) { 1578 if (c) {
1579 gc->buddy_chats = g_slist_remove(gc->buddy_chats, c); 1579 gc->buddy_chats = g_slist_remove(gc->buddy_chats, c);
1580 c->gc = NULL; 1580 c->gc = NULL;
1581 g_snprintf(buf, sizeof(buf), _("You have left %s"), chan); 1581 g_snprintf(buf, sizeof(buf), _("You have left %s"), chan);
1582 do_error_dialog(buf, _("IRC Part")); 1582 do_error_dialog(buf, NULL, GAIM_INFO);
1583 } 1583 }
1584 } else if (!g_strcasecmp(pdibuf, "WHOIS")) { 1584 } else if (!g_strcasecmp(pdibuf, "WHOIS")) {
1585 g_snprintf(buf, sizeof(buf), "WHOIS %s\r\n", word_eol[2]); 1585 g_snprintf(buf, sizeof(buf), "WHOIS %s\r\n", word_eol[2]);
1586 irc_write(id->fd, buf, strlen(buf)); 1586 irc_write(id->fd, buf, strlen(buf));
1587 } else if (!g_strcasecmp(pdibuf, "LIST")) { 1587 } else if (!g_strcasecmp(pdibuf, "LIST")) {