From 0a342e895babbbbb2db49eaf4db4982f3bbe3385 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sat, 25 Jul 2009 19:18:37 +0500 Subject: usermanager: Reduced some code --- core/usermanager.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core') diff --git a/core/usermanager.lua b/core/usermanager.lua index 955218cc..6c36fa29 100644 --- a/core/usermanager.lua +++ b/core/usermanager.lua @@ -63,9 +63,7 @@ function create_user(username, password, host) end function get_supported_methods(host) - local methods = {["PLAIN"] = true}; -- TODO this should be taken from the config - methods["DIGEST-MD5"] = true; - return methods; + return {["PLAIN"] = true, ["DIGEST-MD5"] = true}; -- TODO this should be taken from the config end function is_admin(jid) -- cgit v1.2.3