Software /
code /
prosody
Comparison
util/pubsub.lua @ 8810:9f8a746f99c1
util.pubsub: Add a default/fallback JID normalization function
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 20 May 2018 15:21:57 +0200 |
parent | 8809:6cba2df3817c |
child | 8813:2c55fccb0c0c |
comparison
equal
deleted
inserted
replaced
8809:6cba2df3817c | 8810:9f8a746f99c1 |
---|---|
6 local default_config = { | 6 local default_config = { |
7 itemstore = function (config, _) return cache.new(config["max_items"]) end; | 7 itemstore = function (config, _) return cache.new(config["max_items"]) end; |
8 broadcaster = function () end; | 8 broadcaster = function () end; |
9 itemcheck = function () return true; end; | 9 itemcheck = function () return true; end; |
10 get_affiliation = function () end; | 10 get_affiliation = function () end; |
11 normalize_jid = function (jid) return jid; end; | |
11 capabilities = {}; | 12 capabilities = {}; |
12 }; | 13 }; |
13 local default_config_mt = { __index = default_config }; | 14 local default_config_mt = { __index = default_config }; |
14 | 15 |
15 local default_node_config = { | 16 local default_node_config = { |