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 |