# HG changeset patch # User Waqas Hussain # Date 1248531517 -18000 # Node ID 812ae3be7bed94663b2b988f07d642debda96081 # Parent 9107d3221ccb1c61440c5af71b46b57adfe2184d usermanager: Reduced some code diff -r 9107d3221ccb -r 812ae3be7bed core/usermanager.lua --- a/core/usermanager.lua Sat Jul 25 19:15:05 2009 +0500 +++ b/core/usermanager.lua Sat Jul 25 19:18:37 2009 +0500 @@ -63,9 +63,7 @@ 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)