Ignore OTR policy if message meant for a groupchat

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
This commit is contained in:
David Goulet 2014-04-13 13:30:10 -04:00
parent 57d12c3483
commit 2c34260b99
1 changed files with 3 additions and 2 deletions

View File

@ -57,8 +57,9 @@ local function check_message_otr(event)
jid = strip_full_jid(stanza.attr.from);
-- Continue processing the signal if no body is found since
-- we can't enforce OTR with an empty payload.
if body == nil then
-- we can't enforce OTR with an empty payload or if the message
-- is meant for a groupchat.
if body == nil or stanza.attr.type == "groupchat" then
return nil;
end