Comparison

plugins/muc/muc.lib.lua @ 2504:8b12ee9a5027

MUC: Removed old commented code.
author Waqas Hussain <waqas20@gmail.com>
date Tue, 26 Jan 2010 02:30:56 +0500
parent 2503:bb6b0bd7f2cf
child 2527:3fe3dbb27b6f
comparison
equal deleted inserted replaced
2503:bb6b0bd7f2cf 2504:8b12ee9a5027
86 return tag; 86 return tag;
87 end 87 end
88 local function getTag(stanza, path) return getUsingPath(stanza, path); end 88 local function getTag(stanza, path) return getUsingPath(stanza, path); end
89 local function getText(stanza, path) return getUsingPath(stanza, path, true); end 89 local function getText(stanza, path) return getUsingPath(stanza, path, true); end
90 ----------- 90 -----------
91
92 --[[function get_room_disco_info(room, stanza)
93 return st.iq({type='result', id=stanza.attr.id, from=stanza.attr.to, to=stanza.attr.from}):query("http://jabber.org/protocol/disco#info")
94 :tag("identity", {category='conference', type='text', name=room._data["name"]):up()
95 :tag("feature", {var="http://jabber.org/protocol/muc"}); -- TODO cache disco reply
96 end
97 function get_room_disco_items(room, stanza)
98 return st.iq({type='result', id=stanza.attr.id, from=stanza.attr.to, to=stanza.attr.from}):query("http://jabber.org/protocol/disco#items");
99 end -- TODO allow non-private rooms]]
100
101 --
102 91
103 local room_mt = {}; 92 local room_mt = {};
104 room_mt.__index = room_mt; 93 room_mt.__index = room_mt;
105 94
106 function room_mt:get_default_role(affiliation) 95 function room_mt:get_default_role(affiliation)