Software /
code /
prosody
Comparison
plugins/mod_admin_telnet.lua @ 5006:af7e563cf453
mod_admin_telnet: Add missing import of usermanager
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 24 Jul 2012 21:37:16 +0200 |
parent | 5005:ab950c9ff074 |
child | 5007:76f957b44cf7 |
comparison
equal
deleted
inserted
replaced
5005:ab950c9ff074 | 5006:af7e563cf453 |
---|---|
900 return nil, "No such room: "..room_jid; | 900 return nil, "No such room: "..room_jid; |
901 end | 901 end |
902 return setmetatable({ room = room_obj }, console_room_mt); | 902 return setmetatable({ room = room_obj }, console_room_mt); |
903 end | 903 end |
904 | 904 |
905 local um = require"core.usermanager"; | |
906 | |
905 def_env.user = {}; | 907 def_env.user = {}; |
906 function def_env.user:create(jid, password) | 908 function def_env.user:create(jid, password) |
907 local username, host = jid_split(jid); | 909 local username, host = jid_split(jid); |
908 local ok, err = um.create_user(username, password, host); | 910 local ok, err = um.create_user(username, password, host); |
909 if ok then | 911 if ok then |