Software /
code /
prosody
Comparison
plugins/mod_privacy.lua @ 3453:fba130c16818
mod_privacy: Fix typo causing <active/> to never be send
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Thu, 12 Aug 2010 20:44:01 +0200 |
parent | 3318:8d09b21aeaa9 |
child | 4231:a99f82db692a |
comparison
equal
deleted
inserted
replaced
3452:2d1a5d8893c2 | 3453:fba130c16818 |
---|---|
201 local reply = st.reply(stanza); | 201 local reply = st.reply(stanza); |
202 reply:tag("query", {xmlns="jabber:iq:privacy"}); | 202 reply:tag("query", {xmlns="jabber:iq:privacy"}); |
203 | 203 |
204 if name == nil then | 204 if name == nil then |
205 if privacy_lists.lists then | 205 if privacy_lists.lists then |
206 if origin.ActivePrivacyList then | 206 if origin.activePrivacyList then |
207 reply:tag("active", {name=origin.activePrivacyList}):up(); | 207 reply:tag("active", {name=origin.activePrivacyList}):up(); |
208 end | 208 end |
209 if privacy_lists.default then | 209 if privacy_lists.default then |
210 reply:tag("default", {name=privacy_lists.default}):up(); | 210 reply:tag("default", {name=privacy_lists.default}):up(); |
211 end | 211 end |