Update of /cvsroot/gaim/gaim/src/protocols/irc
In directory usw-pr-cvs1:/tmp/cvs-serv7099
Modified Files:
irc.c
Log Message:
eh
Index: irc.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/protocols/irc/irc.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- irc.c 2001/11/01 07:54:48 1.52
+++ irc.c 2001/11/01 08:05:38 1.53
@@ -634,20 +634,14 @@
handle_whois(gc, word, word_eol, n);
break;
case 318:
- /*
- id->whois_str = g_string_append(id->whois_str, "<BR><BR>");
- id->whois_str = g_string_append(id->whois_str, word_eol[4]);
- */
-
- {
+ if (id->in_whois && id->whois_str) {
GString *str = decode_html(id->whois_str->str);
g_show_info_text(str->str, NULL);
g_string_free(str, TRUE);
+ g_string_free(id->whois_str, TRUE);
+ id->whois_str = NULL;
+ id->in_whois = FALSE;
}
-
- g_string_free(id->whois_str, TRUE);
- id->whois_str = NULL;
- id->in_whois = FALSE;
break;
case 324:
handle_mode(gc, word, word_eol, TRUE);
@@ -662,16 +656,12 @@
irc_request_buddy_update(gc);
break;
case 401:
+ do_error_dialog(_("No such nick/channel"), _("IRC Error"));
+ break;
case 402:
+ do_error_dialog(_("No such server"), _("IRC Error"));
case 431:
- if (!id->in_whois) {
- id->in_whois = TRUE;
- id->whois_str = g_string_new("");
- } else {
- id->whois_str = g_string_append(id->whois_str, "<BR><BR>");
- id->in_whois = TRUE;
- }
- id->whois_str = g_string_append(id->whois_str, word_eol[4]);
+ do_error_dialog(_("No nickname given"), _("IRC Error"));
break;
}
}
|