prosodyctl: Give hosts type = 'local'

Thu, 18 Nov 2010 14:33:03 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 18 Nov 2010 14:33:03 +0000
changeset 3630
e0c67b14d25f
parent 3629
856e42b38bb0
child 3631
138f385e8246

prosodyctl: Give hosts type = 'local'

prosodyctl file | annotate | diff | comparison | revisions
--- a/prosodyctl	Wed Nov 17 15:58:32 2010 +0100
+++ b/prosodyctl	Thu Nov 18 14:33:03 2010 +0000
@@ -168,7 +168,11 @@
 hosts = prosody.hosts;
 
 local function make_host(hostname)
-	return { events = prosody.events, users = require "core.usermanager".new_null_provider(hostname) };
+	return {
+		type = "local",
+		events = prosody.events,
+		users = require "core.usermanager".new_null_provider(hostname)
+	};
 end
 
 for hostname, config in pairs(config.getconfig()) do

mercurial