ejabberd - Comments for "Hook to block messages between users" https://www.ejabberd.im/node/4629 en THanks, https://www.ejabberd.im/node/4629#comment-57233 <p>I see how you did it in the code and it now works.</p> <p>Thanks!</p> Thu, 14 Apr 2011 14:29:23 +0000 mhoang comment 57233 at https://www.ejabberd.im Hook https://www.ejabberd.im/node/4629#comment-57227 <p>I got IQ to be blocked, I saw that ejabberd_c2s will only block request IQs, and I see that for message stanzas, privacy_check_packet just returns a tuple {false, _, _} and the message seems to go through even if my handle for the privacy_check_packet returns deny...</p> Wed, 13 Apr 2011 22:17:32 +0000 mhoang comment 57227 at https://www.ejabberd.im Hook https://www.ejabberd.im/node/4629#comment-57226 <p>I am looking to be able to read from a DB a list of blocks, and don't necessarily want to use mod_privacy (too bloated for my implementation).</p> <p>I wrote a hook handler for privacy_check_packet, which returns the atom deny but the packet is still allowed to be sent...</p> <p>Am I missing something?</p> <p>Thank you again for your help,<br /> very much appreciated.</p> Wed, 13 Apr 2011 21:18:39 +0000 mhoang comment 57226 at https://www.ejabberd.im You can look as example code: https://www.ejabberd.im/node/4629#comment-57224 <p>You can look as example code: <a href="http://www.ejabberd.im/mod_filter" title="http://www.ejabberd.im/mod_filter">http://www.ejabberd.im/mod_filter</a></p> Wed, 13 Apr 2011 08:58:04 +0000 mfoss comment 57224 at https://www.ejabberd.im