Software /
code /
prosody
Comparison
plugins/mod_register.lua @ 3301:772fb30b28fb
Merge 0.7->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 29 Jun 2010 20:17:21 +0100 |
parent | 3164:db9def53fe9c |
parent | 3297:aa3725bbcde5 |
child | 3302:4d21ce9c0eb7 |
comparison
equal
deleted
inserted
replaced
3294:89dd67cc3689 | 3301:772fb30b28fb |
---|---|
57 core_post_stanza(hosts[host], st.presence({type="unsubscribe", from=bare, to=jid})); | 57 core_post_stanza(hosts[host], st.presence({type="unsubscribe", from=bare, to=jid})); |
58 end | 58 end |
59 end | 59 end |
60 end | 60 end |
61 datamanager.store(username, host, "roster", nil); | 61 datamanager.store(username, host, "roster", nil); |
62 datamanager.store(username, host, "privacy", nil); | |
62 datamanager.store(username, host, "accounts", nil); -- delete accounts datastore at the end | 63 datamanager.store(username, host, "accounts", nil); -- delete accounts datastore at the end |
63 module:log("info", "User removed their account: %s@%s", username, host); | 64 module:log("info", "User removed their account: %s@%s", username, host); |
64 module:fire_event("user-deregistered", { username = username, host = host, source = "mod_register", session = session }); | 65 module:fire_event("user-deregistered", { username = username, host = host, source = "mod_register", session = session }); |
65 else | 66 else |
66 local username = query:child_with_name("username"); | 67 local username = query:child_with_name("username"); |