Software / code / prosody
Comparison
plugins/mod_register.lua @ 836:073386be5ccc
mod_register: Fixed an error happening during account deletion
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Mon, 23 Feb 2009 01:14:23 +0500 |
| parent | 790:f42ad7385640 |
| child | 896:2c0b9e3c11c3 |
comparison
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 |