Index: doc/user-guide/commands.xml
===================================================================
--- doc/user-guide/commands.xml (revision 04a927cb733e2c47424569550a2faeb108094636)
+++ doc/user-guide/commands.xml (revision 4eef27179a98cc1dd478ee9ccd05f30e36ce43bc)
@@ -1006,4 +1006,18 @@
+
+ BitlBee
+
+
+
+ Some Jabber servers are configured to only allow a few (or even just one) kinds of XMPP clients to connect to them.
+
+
+
+ You can change this setting to make BitlBee present itself as a different client, so that you can still connect to these servers.
+
+
+
+
false
Index: protocols/jabber/iq.c
===================================================================
--- protocols/jabber/iq.c (revision 04a927cb733e2c47424569550a2faeb108094636)
+++ protocols/jabber/iq.c (revision 4eef27179a98cc1dd478ee9ccd05f30e36ce43bc)
@@ -65,5 +65,5 @@
if( strcmp( s, XMLNS_VERSION ) == 0 )
{
- xt_add_child( reply, xt_new_node( "name", "BitlBee", NULL ) );
+ xt_add_child( reply, xt_new_node( "name", set_getstr( &ic->acc->set, "user_agent" ), NULL ) );
xt_add_child( reply, xt_new_node( "version", BITLBEE_VERSION, NULL ) );
xt_add_child( reply, xt_new_node( "os", ARCH, NULL ) );
@@ -105,5 +105,5 @@
xt_add_attr( c, "category", "client" );
xt_add_attr( c, "type", "pc" );
- xt_add_attr( c, "name", "BitlBee" );
+ xt_add_attr( c, "name", set_getstr( &ic->acc->set, "user_agent" ) );
xt_add_child( reply, c );
Index: protocols/jabber/jabber.c
===================================================================
--- protocols/jabber/jabber.c (revision 04a927cb733e2c47424569550a2faeb108094636)
+++ protocols/jabber/jabber.c (revision 4eef27179a98cc1dd478ee9ccd05f30e36ce43bc)
@@ -79,4 +79,6 @@
s = set_add( &acc->set, "tls", "try", set_eval_tls, acc );
s->flags |= ACC_SET_OFFLINE_ONLY;
+
+ s = set_add( &acc->set, "user_agent", "BitlBee", NULL, acc );
s = set_add( &acc->set, "xmlconsole", "false", set_eval_bool, acc );