projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ad74c5
)
modulemanager: Add module:set_global() as a cleaner way for a module to declare itsel...
author
Matthew Wild
<mwild1@gmail.com>
Sat, 24 Jan 2009 20:29:25 +0000
(20:29 +0000)
committer
Matthew Wild
<mwild1@gmail.com>
Sat, 24 Jan 2009 20:29:25 +0000
(20:29 +0000)
core/modulemanager.lua
patch
|
blob
|
history
diff --git
a/core/modulemanager.lua
b/core/modulemanager.lua
index 817b5dde972d162087369a1be2699c9a34afd022..5305e5c627ca0fc9af6165de52a3974f335b9301 100644
(file)
--- a/
core/modulemanager.lua
+++ b/
core/modulemanager.lua
@@
-259,6
+259,10
@@
function api:get_host()
return self.host;
end
+function api:set_global()
+ self.host = "*";
+end
+
local function _add_handler(module, origin_type, tag, xmlns, handler)
local handlers = stanza_handlers:get(module.host, origin_type, tag, xmlns);
local msg = (tag == "iq") and "namespace" or "payload namespace";