diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2018-02-22 02:46:47 +0300 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2018-02-22 02:46:47 +0300 |
commit | ea87bdfbe57027b2160bb4ff9d5500ae54126123 (patch) | |
tree | 27d2530e23e642e64132367ec6a36e7a5e3384da | |
parent | 7a1ed065fe61266d720a265f0ba26944225227b9 (diff) |
mod_carboncopy: Apply cosmetic change
The xmpp:has_subtag/2 function returns a boolen() value, so it can be
used with the 'not' operator.
-rw-r--r-- | src/mod_carboncopy.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_carboncopy.erl b/src/mod_carboncopy.erl index 8794e4087..5b7983ddf 100644 --- a/src/mod_carboncopy.erl +++ b/src/mod_carboncopy.erl @@ -165,8 +165,8 @@ user_receive_packet({Packet, #{jid := JID} = C2SState}) -> check_and_forward(JID, To, Packet, Direction)-> case is_chat_message(Packet) andalso not is_received_muc_pm(To, Packet, Direction) andalso - xmpp:has_subtag(Packet, #carbons_private{}) == false andalso - xmpp:has_subtag(Packet, #hint{type = 'no-copy'}) == false of + not xmpp:has_subtag(Packet, #carbons_private{}) andalso + not xmpp:has_subtag(Packet, #hint{type = 'no-copy'}) of true -> case is_carbon_copy(Packet) of false -> |