Mercurial > pidgin
diff libpurple/protocols/irc/parse.c @ 20778:8174f6999308
Sprinkle gc->wants_to_die = TRUE liberally around connection errors that really
ought to have been setting it already so that it is always set when a
disconnection reason is fatal. In a couple of other places, fix the reason to
be more accurate and not be fatal.
| author | Will Thompson <will.thompson@collabora.co.uk> |
|---|---|
| date | Fri, 05 Oct 2007 18:33:27 +0000 |
| parents | 1b420901ca3b |
| children | 88aa557b997f |
line wrap: on
line diff
--- a/libpurple/protocols/irc/parse.c Fri Oct 05 16:50:54 2007 +0000 +++ b/libpurple/protocols/irc/parse.c Fri Oct 05 18:33:27 2007 +0000 @@ -576,11 +576,11 @@ } else if (!strncmp(input, "ERROR ", 6)) { if (g_utf8_validate(input, -1, NULL)) { char *tmp = g_strdup_printf("%s\n%s", _("Disconnected."), input); - purple_connection_error_reason (gc, PURPLE_REASON_OTHER_ERROR, tmp); + purple_connection_error_reason (gc, PURPLE_REASON_NETWORK_ERROR, tmp); g_free(tmp); } else purple_connection_error_reason (gc, - PURPLE_REASON_OTHER_ERROR, _("Disconnected.")); + PURPLE_REASON_NETWORK_ERROR, _("Disconnected.")); return; }
