Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/jabber.c @ 25995:6d7d360687bd
Jabber: Default protocol version to 1.0.
BOSH currently bypasses the standard parser, so protocol version is never
handled and is kept at the default (I was seeing 'Un-hide From' and
'Temporarily Hide From').
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 16 Mar 2009 02:42:40 +0000 |
parents | 035ba9355361 |
children | e4a060a1e3de |
comparison
equal
deleted
inserted
replaced
25994:c3c2e8b64539 | 25995:6d7d360687bd |
---|---|
775 js->user = jabber_id_new(purple_account_get_username(account)); | 775 js->user = jabber_id_new(purple_account_get_username(account)); |
776 js->next_id = g_random_int(); | 776 js->next_id = g_random_int(); |
777 js->write_buffer = purple_circ_buffer_new(512); | 777 js->write_buffer = purple_circ_buffer_new(512); |
778 js->old_length = 0; | 778 js->old_length = 0; |
779 js->keepalive_timeout = -1; | 779 js->keepalive_timeout = -1; |
780 /* Set the default protocol version to 1.0. Overridden in parser.c. */ | |
781 js->protocol_version = JABBER_PROTO_1_0; | |
780 | 782 |
781 if(!js->user) { | 783 if(!js->user) { |
782 purple_connection_error_reason (gc, | 784 purple_connection_error_reason (gc, |
783 PURPLE_CONNECTION_ERROR_INVALID_SETTINGS, | 785 PURPLE_CONNECTION_ERROR_INVALID_SETTINGS, |
784 _("Invalid XMPP ID")); | 786 _("Invalid XMPP ID")); |