Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 1808:e164fdb2d18f
MUC: Added MUC feature to the disco#info replies of rooms.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 22 Sep 2009 00:38:06 +0500 |
parent | 1778:f4213d84ba8a |
child | 1818:a394e0bd4847 |
comparison
equal
deleted
inserted
replaced
1807:3bb0e5170692 | 1808:e164fdb2d18f |
---|---|
185 self:route_stanza(st.message({type='groupchat', from=self.jid, to=to}):tag("subject"):text(self._data['subject'])); | 185 self:route_stanza(st.message({type='groupchat', from=self.jid, to=to}):tag("subject"):text(self._data['subject'])); |
186 end | 186 end |
187 end | 187 end |
188 | 188 |
189 local function room_get_disco_info(self, stanza) | 189 local function room_get_disco_info(self, stanza) |
190 return st.reply(stanza):query("http://jabber.org/protocol/disco#info"):tag("identity", {category="conference", type="text"}); | 190 return st.reply(stanza):query("http://jabber.org/protocol/disco#info") |
191 :tag("identity", {category="conference", type="text"}):up() | |
192 :tag("feature", {var="http://jabber.org/protocol/muc"}); | |
191 end | 193 end |
192 local function room_get_disco_items(self, stanza) | 194 local function room_get_disco_items(self, stanza) |
193 return st.reply(stanza):query("http://jabber.org/protocol/disco#items"); | 195 return st.reply(stanza):query("http://jabber.org/protocol/disco#items"); |
194 end | 196 end |
195 function room_mt:set_subject(current_nick, subject) | 197 function room_mt:set_subject(current_nick, subject) |