]> git.pld-linux.org Git - packages/telepathy-gabble.git/blob - jabberd-compat.patch
- jabber at pld-linux.org is broken, patching for that
[packages/telepathy-gabble.git] / jabberd-compat.patch
1 --- telepathy-gabble-0.9.13/src/connection.c~   2010-06-14 15:57:03.000000000 +0200
2 +++ telepathy-gabble-0.9.13/src/connection.c    2010-06-18 15:44:05.279021780 +0200
3 @@ -1690,24 +1690,25 @@
4    if (disco_error != NULL)
5      {
6        DEBUG ("Got disco error on bare jid: %s", disco_error->message);
7 -      return;
8      }
9 -
10 -  for (i = node_iter (result); i; i = node_iter_next (i))
11 +  else
12      {
13 -      LmMessageNode *child = node_iter_data (i);
14 -
15 -      if (!tp_strdiff (child->name, "identity"))
16 +      for (i = node_iter (result); i; i = node_iter_next (i))
17          {
18 -          const gchar *category = lm_message_node_get_attribute (child,
19 -              "category");
20 -          const gchar *type = lm_message_node_get_attribute (child, "type");
21 -
22 -          if (!tp_strdiff (category, "pubsub") &&
23 -              !tp_strdiff (type, "pep"))
24 +          LmMessageNode *child = node_iter_data (i);
25 +    
26 +          if (!tp_strdiff (child->name, "identity"))
27              {
28 -              DEBUG ("Server advertises PEP support in our jid features");
29 -              conn->features |= GABBLE_CONNECTION_FEATURES_PEP;
30 +              const gchar *category = lm_message_node_get_attribute (child,
31 +                  "category");
32 +              const gchar *type = lm_message_node_get_attribute (child, "type");
33 +    
34 +              if (!tp_strdiff (category, "pubsub") &&
35 +                  !tp_strdiff (type, "pep"))
36 +                {
37 +                  DEBUG ("Server advertises PEP support in our jid features");
38 +                  conn->features |= GABBLE_CONNECTION_FEATURES_PEP;
39 +                }
40              }
41          }
42      }
This page took 0.055117 seconds and 3 git commands to generate.