diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-06-01 17:53:39 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-06-01 17:53:39 +0500 |
commit | 2a623f411c571d5cac76c5f91bd0e52eaaf687d9 (patch) | |
tree | db9c8becf0b3ee5348a49c30bf6c259664a6f42e | |
parent | 7b020e95d56db5759049e723e0392f38c6c7d59b (diff) | |
download | prosody-2a623f411c571d5cac76c5f91bd0e52eaaf687d9.tar.gz prosody-2a623f411c571d5cac76c5f91bd0e52eaaf687d9.zip |
stanza_router: Reply with an error on groupchat messages to bare JID
-rw-r--r-- | core/stanza_router.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua index 03221fb9..8b98939b 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -244,7 +244,7 @@ function core_route_stanza(origin, stanza) session.send(stanza); end end - elseif resource and stanza.attr.type == 'groupchat' then + elseif stanza.attr.type == 'groupchat' then -- Groupchat message sent to offline resource origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); else |