Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #29 from hiciu/xep-0144
Browse files Browse the repository at this point in the history
make "get roster" command work with recent clients
  • Loading branch information
Jajcus committed Jun 20, 2013
2 parents 3e46746 + 7f64e33 commit 7e627e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/message.c
Expand Up @@ -208,7 +208,7 @@ int i;
xmlnode_put_attrib(msg,"to",s->user->jid);
n=xmlnode_insert_tag(msg,"body");
roster=xmlnode_insert_tag(msg,"x");
xmlnode_put_attrib(roster,"xmlns","jabber:x:roster");
xmlnode_put_attrib(roster,"xmlns","http://jabber.org/protocol/rosterx");

body=g_strdup("");
results=g_strsplit(e->event.userlist.reply,"\r\n",0);
Expand Down Expand Up @@ -281,6 +281,7 @@ int i;
}

jid=jid_build(uin);
xmlnode_put_attrib(item,"action", "add");
xmlnode_put_attrib(item,"jid",jid);
g_free(jid);
if (name==NULL) name=g_strdup_printf("%u",uin);
Expand Down

0 comments on commit 7e627e5

Please sign in to comment.