Software /
code /
prosody
Comparison
plugins/mod_register.lua @ 549:c0947c0af398
Changed the datastore for vCards from vCard to vcard in mod_vcard and mod_register
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 05 Dec 2008 00:16:03 +0500 |
parent | 541:3521e0851c9e |
child | 615:4ae3e81513f3 |
comparison
equal
deleted
inserted
replaced
547:265c4b8f0a8a | 549:c0947c0af398 |
---|---|
49 for _, session in pairs(hosts[session.host].sessions[session.username].sessions) do -- disconnect all resources | 49 for _, session in pairs(hosts[session.host].sessions[session.username].sessions) do -- disconnect all resources |
50 session:disconnect({condition = "not-authorized", text = "Account deleted"}); | 50 session:disconnect({condition = "not-authorized", text = "Account deleted"}); |
51 end | 51 end |
52 -- TODO datamanager should be able to delete all user data itself | 52 -- TODO datamanager should be able to delete all user data itself |
53 datamanager.store(session.username, session.host, "roster", nil); | 53 datamanager.store(session.username, session.host, "roster", nil); |
54 datamanager.store(session.username, session.host, "vCard", nil); | 54 datamanager.store(session.username, session.host, "vcard", nil); |
55 datamanager.store(session.username, session.host, "private", nil); | 55 datamanager.store(session.username, session.host, "private", nil); |
56 datamanager.store(session.username, session.host, "offline", nil); | 56 datamanager.store(session.username, session.host, "offline", nil); |
57 local bare = session.username.."@"..session.host; | 57 local bare = session.username.."@"..session.host; |
58 for jid, item in pairs(roster) do | 58 for jid, item in pairs(roster) do |
59 if jid ~= "pending" then | 59 if jid ~= "pending" then |