Software / code / prosody
Comparison
prosodyctl @ 3015:aad8034ab389
prosodyctl: Use the global events objects for hosts (again) (thanks albert) (sorry albert)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 05 May 2010 20:35:06 +0100 |
| parent | 3014:169d096988e1 |
| child | 3038:6b68355d615a |
comparison
equal
deleted
inserted
replaced
| 3014:169d096988e1 | 3015:aad8034ab389 |
|---|---|
| 121 }, { __index = function (t,k) return "Error: "..(tostring(k):gsub("%-", " "):gsub("^.", string.upper)); end }); | 121 }, { __index = function (t,k) return "Error: "..(tostring(k):gsub("%-", " "):gsub("^.", string.upper)); end }); |
| 122 | 122 |
| 123 hosts = prosody.hosts; | 123 hosts = prosody.hosts; |
| 124 | 124 |
| 125 for hostname, config in pairs(config.getconfig()) do | 125 for hostname, config in pairs(config.getconfig()) do |
| 126 hosts[hostname] = { events = require "util.events".new() }; | 126 hosts[hostname] = { events = prosody.events }; |
| 127 end | 127 end |
| 128 | 128 |
| 129 require "core.modulemanager" | 129 require "core.modulemanager" |
| 130 | 130 |
| 131 require "util.prosodyctl" | 131 require "util.prosodyctl" |