Method: Jabber::Caps::Helper#handle_discoinfo_query
- Defined in:
- lib/vendor/xmpp4r/lib/xmpp4r/caps/helper/helper.rb
#handle_discoinfo_query(iq) ⇒ Object
Send actual identities/ features back to a requesting entity
67 68 69 70 71 72 73 74 75 |
# File 'lib/vendor/xmpp4r/lib/xmpp4r/caps/helper/helper.rb', line 67 def handle_discoinfo_query(iq) caps_reply = Jabber::XMPPStanza.answer(iq) caps_reply.type = :result caps_reply.query = Jabber::Discovery::IqQueryDiscoInfo.new @identities.each { |i| caps_reply.query.add(i) } @features.each { |f| caps_reply.query.add(f) } @stream.send(caps_reply) end |