Software /
code /
prosody
Changeset
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 |
parents | 4733:791388f90156 |
children | 4735:474166c08319 |
files | plugins/mod_component.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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;