diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-01-27 15:55:09 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2012-01-27 15:55:09 +0000 |
commit | d1758a79e0f9287fed177574b5c39e324128b15a (patch) | |
tree | 0ecfe07c5857aed85c9220ed795f613349f3dd3a /src/conn-aliasing.c | |
parent | 84403989062485a3ef0c5e131b8e11f47d964104 (diff) |
Remove lm_message_build[_with_subtype]
The build specs aren't *quite* compatible. lm_message_build()'s '('
accepted two arguments: tag name, and content (usually ""). So:
'(', "foo", "" becomes '(', "foo"
'(', "foo", "bar" becomes '(', "foo", '$', "bar"
I didn't actually do this with sed as a result.
Diffstat (limited to 'src/conn-aliasing.c')
-rw-r--r-- | src/conn-aliasing.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/conn-aliasing.c b/src/conn-aliasing.c index 1f8eba9a9..a5e38acbc 100644 --- a/src/conn-aliasing.c +++ b/src/conn-aliasing.c @@ -356,6 +356,7 @@ gabble_do_pep_request (GabbleConnection *self, gpointer user_data) { TpBaseConnection *base = (TpBaseConnection *) self; + const gchar *to; LmMessage *msg; GabbleRequestPipelineItem *pep_request; pep_request_ctx *ctx; @@ -372,12 +373,12 @@ gabble_do_pep_request (GabbleConnection *self, ctx->handle = handle; tp_handle_ref (contact_handles, handle); - msg = lm_message_build (tp_handle_inspect (contact_handles, handle), - LM_MESSAGE_TYPE_IQ, - '@', "type", "get", - '(', "pubsub", "", + to = tp_handle_inspect (contact_handles, handle); + msg = wocky_stanza_build (WOCKY_STANZA_TYPE_IQ, WOCKY_STANZA_SUB_TYPE_GET, + NULL, to, + '(', "pubsub", ':', NS_PUBSUB, - '(', "items", "", + '(', "items", '@', "node", NS_NICK, ')', ')', |