From ed25c7d2fe46dca4edecd359755b15e16620056e Mon Sep 17 00:00:00 2001
From: Roger Planas <roger.planas@isode.com>
Date: Thu, 26 Oct 2017 12:38:37 +0100
Subject: Sluift: Add shortcut for get disco_info to components

disco_info shortcut was available to clients but not
to components. This patch addresses this.

Test-information:

Used component:get_disco_info and data is retrieved
successfully.

Change-Id: Ie8d80e3180ca400e5694fd581f60f08511e36ca4

diff --git a/Sluift/core.lua b/Sluift/core.lua
index 89c96ba..daa8636 100644
--- a/Sluift/core.lua
+++ b/Sluift/core.lua
@@ -961,7 +961,7 @@ register_help(Component.process_events)
 --	component:set_command{to = 'alice@wonderland.lit', command = { type = 'execute', node = 'uptime' }}
 --
 local get_set_shortcuts = {
-	get = {'software_version', 'disco_items', 'xml', 'dom', 'vcard'},
+	get = {'software_version', 'disco_items', 'disco_info', 'xml', 'dom', 'vcard'},
 	set = {'command', 'vcard'}
 }
 for query_action, query_types in pairs(get_set_shortcuts) do
-- 
cgit v0.10.2-6-g49f6