Changeset

1589:812ae3be7bed

usermanager: Reduced some code
author Waqas Hussain <waqas20@gmail.com>
date Sat, 25 Jul 2009 19:18:37 +0500
parents 1588:9107d3221ccb
children 1590:638761692663
files core/usermanager.lua
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)