projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88d2f2d
)
mod_admin_telnet: Fix inverted boolean logic
author
Kim Alvefur
<zash@zash.se>
Tue, 4 Jun 2013 17:35:41 +0000
(19:35 +0200)
committer
Kim Alvefur
<zash@zash.se>
Tue, 4 Jun 2013 17:35:41 +0000
(19:35 +0200)
plugins/mod_admin_telnet.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_admin_telnet.lua
b/plugins/mod_admin_telnet.lua
index d8dd995121b675f0155dfb3fa9479ebe187b308a..5264c21bef6b12c0243c0bdb976422b5d8409540 100644
(file)
--- a/
plugins/mod_admin_telnet.lua
+++ b/
plugins/mod_admin_telnet.lua
@@
-958,7
+958,7
@@
function def_env.user:delete(jid)
local username, host = jid_split(jid);
if not hosts[host] then
return nil, "No such host: "..host;
- elseif um.user_exists(username, host) then
+ elseif
not
um.user_exists(username, host) then
return nil, "No such user";
end
local ok, err = um.delete_user(username, host);