Added id attributes to roster queries

fixes #596
This commit is contained in:
James Booth
2015-07-22 22:48:37 +01:00
parent fceec61a2c
commit f9a7e35001
8 changed files with 160 additions and 13 deletions

View File

@@ -210,16 +210,10 @@ prof_output_regex(char *text)
}
void
prof_connect(void)
prof_connect_with_roster(char *roster)
{
stbbr_for_query("jabber:iq:roster",
"<iq type=\"result\" to=\"stabber@localhost/profanity\">"
"<query xmlns=\"jabber:iq:roster\" ver=\"362\">"
"<item jid=\"buddy1@localhost\" subscription=\"both\" name=\"Buddy1\"/>"
"<item jid=\"buddy2@localhost\" subscription=\"both\" name=\"Buddy2\"/>"
"</query>"
"</iq>"
);
stbbr_for_query("jabber:iq:roster", roster);
stbbr_for_id("prof_presence_1",
"<presence id=\"prof_presence_1\" lang=\"en\" to=\"stabber@localhost/profanity\" from=\"stabber@localhost/profanity\">"
"<priority>0</priority>"
@@ -236,3 +230,16 @@ prof_connect(void)
exp_timeout = 10;
stbbr_wait_for("prof_presence_*");
}
void
prof_connect(void)
{
prof_connect_with_roster(
"<iq type=\"result\" to=\"stabber@localhost/profanity\">"
"<query xmlns=\"jabber:iq:roster\" ver=\"362\">"
"<item jid=\"buddy1@localhost\" subscription=\"both\" name=\"Buddy1\"/>"
"<item jid=\"buddy2@localhost\" subscription=\"both\" name=\"Buddy2\"/>"
"</query>"
"</iq>"
);
}