1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Prime rooms query response

This commit is contained in:
James Booth 2015-05-24 18:45:17 +01:00
parent 766b4e0e5f
commit cddc55b51b

View File

@ -53,6 +53,15 @@ sends_rooms_iq(void **state)
cmd_process_input(strdup("/connect stabber@localhost port 5230"));
prof_process_xmpp();
stbbr_for("confreq",
"<iq id=\"confreq\" type=\"result\" to=\"stabber@localhost/profanity\" from=\"conference.localhost\">"
"<query xmlns=\"http://jabber.org/protocol/disco#items\">"
"<item jid=\"chatroom@conference.localhost\" name=\"A chat room\"/>"
"<item jid=\"hangout@conference.localhost\" name=\"Another chat room\"/>"
"</query>"
"</iq>"
);
cmd_process_input(strdup("/rooms"));
prof_process_xmpp();