changeset 25993: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 c3c2e8b64539
children a94b28023bf6
files libpurple/protocols/jabber/jabber.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c	Sun Mar 15 05:13:41 2009 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Mon Mar 16 02:42:40 2009 +0000
@@ -777,6 +777,8 @@
 	js->write_buffer = purple_circ_buffer_new(512);
 	js->old_length = 0;
 	js->keepalive_timeout = -1;
+	/* Set the default protocol version to 1.0. Overridden in parser.c. */
+	js->protocol_version = JABBER_PROTO_1_0;
 
 	if(!js->user) {
 		purple_connection_error_reason (gc,