diff --git a/sgx_jmp.rb b/sgx_jmp.rb index c2d51cce5317eacd920b416c6e2455c754ed0b61..ca3005c2a8c446d3bc10dffbe4a87a995c08bd7a 100644 --- a/sgx_jmp.rb +++ b/sgx_jmp.rb @@ -259,6 +259,10 @@ disco_info to: Blather::JID.new(CONFIG[:component][:jid]) do |iq| type: "sms", category: "gateway" }] + reply.features = [ + "http://jabber.org/protocol/disco#info", + "http://jabber.org/protocol/commands" + ] form = Blather::Stanza::X.find_or_create(reply.query) form.type = "result" form.fields = [ @@ -271,6 +275,19 @@ disco_info to: Blather::JID.new(CONFIG[:component][:jid]) do |iq| self << reply end +disco_info do |iq| + reply = iq.reply + reply.identities = [{ + name: "JMP.chat", + type: "sms", + category: "client" + }] + reply.features = [ + "urn:xmpp:receipts" + ] + self << reply +end + disco_items node: "http://jabber.org/protocol/commands" do |iq| StatsD.increment("command_list")