projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge 0.10->trunk
[prosody.git]
/
util
/
pubsub.lua
diff --git
a/util/pubsub.lua
b/util/pubsub.lua
index c15a41d7d059a8751485097253e913b56ff7f46f..6d12690aa8488ab4852a2ab12d5830e315012920 100644
(file)
--- a/
util/pubsub.lua
+++ b/
util/pubsub.lua
@@
-1,8
+1,6
@@
local events = require "util.events";
local t_remove = table.remove;
local events = require "util.events";
local t_remove = table.remove;
-module("pubsub", package.seeall);
-
local service = {};
local service_mt = { __index = service };
local service = {};
local service_mt = { __index = service };
@@
-15,7
+13,7
@@
local default_node_config = { __index = {
["pubsub#max_items"] = "20";
} };
["pubsub#max_items"] = "20";
} };
-function new(config)
+
local
function new(config)
config = config or {};
return setmetatable({
config = setmetatable(config, default_config);
config = config or {};
return setmetatable({
config = setmetatable(config, default_config);
@@
-442,4
+440,6
@@
function service:set_node_config(node, actor, new_config)
return true;
end
return true;
end
-return _M;
+return {
+ new = new;
+};