Mercurial > pidgin.yaz
comparison libpurple/protocols/irc/parse.c @ 21358:ba41f2a60253
Rename:
* PurpleDisconnectReason to PurpleConnectionError;
* elements of that enum from PURPLE_REASON_* to PURPLE_CONNECTION_ERROR_*;
* purple_connection_reason_is_fatal to purple_connection_error_is_fatal.
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Sun, 14 Oct 2007 21:08:42 +0000 |
parents | 88aa557b997f |
children | 280f622cb9b0 98604b4bfa3b |
comparison
equal
deleted
inserted
replaced
21357:5a3242b676ad | 21358:ba41f2a60253 |
---|---|
629 g_free(msg); | 629 g_free(msg); |
630 return; | 630 return; |
631 } else if (!strncmp(input, "ERROR ", 6)) { | 631 } else if (!strncmp(input, "ERROR ", 6)) { |
632 if (g_utf8_validate(input, -1, NULL)) { | 632 if (g_utf8_validate(input, -1, NULL)) { |
633 char *tmp = g_strdup_printf("%s\n%s", _("Disconnected."), input); | 633 char *tmp = g_strdup_printf("%s\n%s", _("Disconnected."), input); |
634 purple_connection_error_reason (gc, PURPLE_REASON_NETWORK_ERROR, tmp); | 634 purple_connection_error_reason (gc, |
635 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, tmp); | |
635 g_free(tmp); | 636 g_free(tmp); |
636 } else | 637 } else |
637 purple_connection_error_reason (gc, | 638 purple_connection_error_reason (gc, |
638 PURPLE_REASON_NETWORK_ERROR, _("Disconnected.")); | 639 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
640 _("Disconnected.")); | |
639 return; | 641 return; |
640 } | 642 } |
641 | 643 |
642 if (input[0] != ':' || (cur = strchr(input, ' ')) == NULL) { | 644 if (input[0] != ':' || (cur = strchr(input, ' ')) == NULL) { |
643 irc_parse_error_cb(irc, input); | 645 irc_parse_error_cb(irc, input); |