Comparison

core/usermanager.lua @ 5133:1443d1c37c6c

Merge 0.9->trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 19 Sep 2012 12:14:08 +0100
parent 5129:e8253c931166
child 5157:0e1686f334b8
comparison
equal deleted inserted replaced
5127:cbcd173ad906 5133:1443d1c37c6c
91 91
92 function delete_user(username, host) 92 function delete_user(username, host)
93 local ok, err = hosts[host].users.delete_user(username); 93 local ok, err = hosts[host].users.delete_user(username);
94 if not ok then return nil, err; end 94 if not ok then return nil, err; end
95 prosody.events.fire_event("user-deleted", { username = username, host = host }); 95 prosody.events.fire_event("user-deleted", { username = username, host = host });
96 return storagemanager.get_driver(host):purge(username); 96 return storagemanager.purge(username, host);
97 end 97 end
98 98
99 function get_sasl_handler(host, session) 99 function get_sasl_handler(host, session)
100 return hosts[host].users.get_sasl_handler(session); 100 return hosts[host].users.get_sasl_handler(session);
101 end 101 end