91 privacy_lists.default = name; |
91 privacy_lists.default = name; |
92 origin.send(st.reply(stanza)); |
92 origin.send(st.reply(stanza)); |
93 elseif which == "active" and list then |
93 elseif which == "active" and list then |
94 origin.activePrivacyList = name; |
94 origin.activePrivacyList = name; |
95 origin.send(st.reply(stanza)); |
95 origin.send(st.reply(stanza)); |
|
96 elseif not list then |
|
97 return {"cancel", "item-not-found", "No such list: "..name}; |
96 else |
98 else |
97 return {"modify", "bad-request", "Either not active or default given or unknown list name specified."}; |
99 return {"modify", "bad-request", "No list chosen to be active or default."}; |
98 end |
100 end |
99 return true; |
101 return true; |
100 end |
102 end |
101 |
103 |
102 function deleteList(privacy_lists, origin, stanza, name) |
104 function deleteList(privacy_lists, origin, stanza, name) |