Software /
code /
prosody
Diff
plugins/mod_component.lua @ 4734:4d43dbd6de17
mod_component: Return true after denying a second component connection for a host (thanks xnyhps)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 27 Apr 2012 22:37:24 +0100 |
parent | 4655:9159546cb2f3 |
child | 4757:5fb68e68ba0b |
line wrap: on
line diff
--- a/plugins/mod_component.lua Fri Apr 27 22:36:35 2012 +0100 +++ b/plugins/mod_component.lua Fri Apr 27 22:37:24 2012 +0100 @@ -69,6 +69,7 @@ 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;