Mercurial > pidgin
diff libpurple/protocols/qq/keep_alive.c @ 20125:3e8531514ad7
Add disconnection reasons to qq.
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Tue, 02 Oct 2007 00:14:12 +0000 |
parents | 44b4e8bd759b |
children | ba41f2a60253 |
line wrap: on
line diff
--- a/libpurple/protocols/qq/keep_alive.c Mon Oct 01 16:07:14 2007 +0000 +++ b/libpurple/protocols/qq/keep_alive.c Tue Oct 02 00:14:12 2007 +0000 @@ -84,7 +84,8 @@ /* segments[0] and segment[1] are all 0x30 ("0") */ qd->all_online = strtol(segments[2], NULL, 10); if(0 == qd->all_online) - purple_connection_error(gc, _("Keep alive error")); + purple_connection_error_reason(gc, PURPLE_REASON_NETWORK_ERROR, + _("Keep alive error")); g_free(qd->my_ip); qd->my_ip = g_strdup(segments[3]); qd->my_port = strtol(segments[4], NULL, 10);