diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/usermanager.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua index 37fd38a9..793e7af6 100644 --- a/core/usermanager.lua +++ b/core/usermanager.lua @@ -163,12 +163,12 @@ local function enable_user(username, host) return ret, err; end -local function disable_user(username, host) +local function disable_user(username, host, meta) local method = hosts[host].users.disable; if not method then return nil, "method not supported"; end - local ret, err = method(username); + local ret, err = method(username, meta); if ret then - prosody.events.fire_event("user-disabled", { username = username, host = host }); + prosody.events.fire_event("user-disabled", { username = username, host = host, meta = meta }); end return ret, err; end |