diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-27 22:37:24 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-27 22:37:24 +0100 |
commit | 1835139203be72741b50efaba1d7c1071542972a (patch) | |
tree | 796a607f76ef511149e21cb3356613c761b301f7 /plugins/mod_component.lua | |
parent | 9fa672af8b196566d0099daf5cd12ef0374999dc (diff) | |
download | prosody-1835139203be72741b50efaba1d7c1071542972a.tar.gz prosody-1835139203be72741b50efaba1d7c1071542972a.zip |
mod_component: Return true after denying a second component connection for a host (thanks xnyhps)
Diffstat (limited to 'plugins/mod_component.lua')
-rw-r--r-- | plugins/mod_component.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua index 5b1eefc7..98eaa6de 100644 --- a/plugins/mod_component.lua +++ b/plugins/mod_component.lua @@ -69,6 +69,7 @@ function module.add_host(module) if env.connected then module:log("error", "Second component attempted to connect, denying connection"); session:close{ condition = "conflict", text = "Component already connected" }; + return true; end env.connected = true; |