plugins/mod_register.lua

changeset 836
073386be5ccc
parent 790
f42ad7385640
child 894
2c0b9e3c11c3
equal deleted inserted replaced
835:2a8bfb7dee77 836:073386be5ccc
42 -- TODO datamanager should be able to delete all user data itself 42 -- TODO datamanager should be able to delete all user data itself
43 datamanager.store(session.username, session.host, "roster", nil); 43 datamanager.store(session.username, session.host, "roster", nil);
44 datamanager.store(session.username, session.host, "vcard", nil); 44 datamanager.store(session.username, session.host, "vcard", nil);
45 datamanager.store(session.username, session.host, "private", nil); 45 datamanager.store(session.username, session.host, "private", nil);
46 datamanager.store(session.username, session.host, "offline", nil); 46 datamanager.store(session.username, session.host, "offline", nil);
47 local bare = session.username.."@"..session.host; 47 --local bare = session.username.."@"..session.host;
48 for jid, item in pairs(roster) do 48 for jid, item in pairs(roster) do
49 if jid ~= "pending" then 49 if jid ~= "pending" then
50 if item.subscription == "both" or item.subscription == "to" then 50 if item.subscription == "both" or item.subscription == "to" then
51 -- TODO unsubscribe 51 -- TODO unsubscribe
52 end 52 end

mercurial