From 6448e03b74dbc86ba12870e4166a139a475196b0 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 11 Feb 2012 14:49:51 +0000 Subject: util.prosodyctl: Fix variable name clash introduced in 55ef5d83d00a (thanks chris) --- util/prosodyctl.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/prosodyctl.lua') diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua index 6e9eed4e..2da39cb2 100644 --- a/util/prosodyctl.lua +++ b/util/prosodyctl.lua @@ -121,11 +121,11 @@ function adduser(params) return false, "invalid-hostname"; end - local host = prosody.hosts[host]; - if not host then + local host_session = prosody.hosts[host]; + if not host_session then return false, "no-such-host"; end - local provider = host.users; + local provider = host_session.users; if not(provider) or provider.name == "null" then usermanager.initialize_host(host); end -- cgit v1.2.3