]> granicus.if.org Git - ejabberd/commitdiff
Fixing mod_carboncopy sends carbons of carbons (fixes #107)
authorBadlop <badlop@process-one.net>
Thu, 23 Jan 2014 16:29:24 +0000 (17:29 +0100)
committerBadlop <badlop@process-one.net>
Thu, 23 Jan 2014 16:29:24 +0000 (17:29 +0100)
src/mod_carboncopy.erl

index 087d090c82c15df3b49bac3ea9bd1870a4fd18eb..cc5cb83b08d8b8421d7395d905a0a58400da66d3 100644 (file)
@@ -149,7 +149,7 @@ check_and_forward(JID, #xmlel{name = <<"message">>, attrs = Attrs} = Packet, Dir
       <<"chat">> ->
        case xml:get_subtag(Packet, <<"private">>) of
            false ->
-               case xml:get_subtag(Packet,<<"forwarded">>) of
+               case xml:get_subtag(Packet,<<"received">>) of
                    false ->
                        send_copies(JID, Packet, Direction);
                    _ ->