Commit Graph

614 Commits

Author SHA1 Message Date
Holger Weiss 6a877d7018 mod_spam_filter: Add 'drop_from_spam_filter_cache'
Add a 'drop_from_spam_filter_cache' command that allows for removing
individual JIDs from the cache.
2019-04-10 00:49:36 +02:00
Holger Weiss b5daceaac2 mod_spam_filter: Apply cosmetic changes 2019-04-09 22:46:05 +02:00
Holger Weiss f459a7e57c mod_spam_filter: Also check body for listed JIDs
Also check whether the message body contains a listed JID (usually
mentioned as a contact address), rather than just using the JID list to
check the 'from' address of incoming stanzas.
2019-04-09 20:46:12 +02:00
Holger Weiss 8f63b2cbae mod_spam_filter: Check recipient's domain
Don't crash if the module isn't loaded for the 'to' domain.  This would
otherwise happen for stanzas sent to subdomains (e.g., MUC messages).

Thanks to Nico Wellpott for reporting the bug and testing the fix.
2019-04-09 01:21:55 +02:00
Holger Weiss 83117240d2 Import mod_spam_filter
Add a module that allows for filtering spam messages and subscription
requests based on lists of known spammer JIDs and/or URLs mentioned in
spam messages.

Thanks to Georg Lukas for his suggestions.
2019-04-09 00:51:33 +02:00
Holger Weiss d60fa5e9b3 Import mod_default_rooms
Add a module that can be used to auto-bookmark a configured list of
rooms on registration.
2019-02-27 19:52:28 +01:00
Badlop 009d25f0bd Stop the bloom and normalize processes when stopping mod_pottymouth 2019-02-21 13:32:13 +01:00
Badlop bae1cdc52e Add example call in Curl to mod_rest 2019-02-11 15:39:02 +01:00
Badlop d1066f6644 Use mod_opt_type and mod_options to check options values (#268) 2019-02-11 15:36:21 +01:00
Badlop ebfaf70df4 Fix use of old jlib in mod_rest, and forget timezone option (#268) 2019-02-08 17:31:11 +01:00
Badlop eb39a4f3af When the message uses a language with no configured blacklist, use default 2019-01-28 23:14:07 +01:00
Badlop 2be66bb69f Provide another way to install mod_pottymouth deps, works better for me 2019-01-23 11:40:10 +01:00
Badlop 5c94639bf2 mod_irc: Disable spurious vCard->WHOIS requests (thanks to Kousu)(#874)
It makes sense that vCard in XMPP roughly maps to WHOIS in IRC,
but there is no code that actually handles receiving WHOISes properly:
they just get passed through as plain messages coming from user!ircserver@irc.xmppserver.tld.
I suppose sometimes you want to manually be able to run a WHOIS and see the results,
so I don't want them banned entirely, but I don't want them on each run.

Sending spurious WHOISes pisses off Xabber, which overenthusiastically sends "get vCard"
IQ stanzas on every single presence change (even "unavailable"); this has the horrible
side effect of spawning a huge number of private chats with users I have never talked to,
and buzzing my phone uncontrollably for a good minute, whenever I join a channel with more
than 50 people in it, and the same every time someone's connection drops.

Disabling this scratches an itch for me and patches over what is arguably Xabber's problem,
but in fact, this code was already half-disabled: *even though it sends IRC commands* it
returns ?ERR_FEATURE_NOT_IMPLEMENTED.  Was this an oversight?
2019-01-21 14:55:31 +01:00
Holger Weiss cfad261cf4 mod_message_log: Update for ejabberd 18.12 2018-12-10 12:17:19 +01:00
Badlop 774cc46481 Use p1_rand:bytes instead of crypto to work in supported Erlang versions (#243) 2018-11-07 13:33:54 +01:00
Badlop 18be432fdf Fix crash using Conversations requesting xml/ (#261)
Conversations doesn't set Priority, in that case assume it's zero:
   If no priority is provided, the processing server or client MUST
   consider the priority to be zero ("0").
   https://tools.ietf.org/html/rfc6121#section-4.7.2.3
2018-11-07 13:00:33 +01:00
Badlop 1fcf7b5cb1 Provide meaningful Show when user is online with no Show set (#260) 2018-10-19 18:08:18 +02:00
Badlop a43bc6f794 Update mod_filter to work with recent ejabberd 2018-09-18 11:53:25 +02:00
Badlop 1a6284efa9 Add documentation, default configuration, description 2018-09-18 11:53:09 +02:00
Badlop 95ef06b768 Copy mod_filter.erl from https://github.com/knobo/mod_filter 2018-09-18 11:38:10 +02:00
Holger Weiss 954fb94017 mod_message_log: Replace outdated function calls 2018-09-10 12:07:03 +02:00
Badlop 4ebf99a1d1 Add default ejabberd_auth_http configuration file 2018-09-06 13:00:59 +02:00
Badlop 97de583107 Check ejabberd_auth_http options names and values 2018-09-06 12:59:43 +02:00
Badlop 8978f38c22 Configuration and examples in mod_rest should match 2018-09-05 12:07:42 +02:00
Badlop 2627182cdb Don't call directly mod_mam in mod_rest, instead run a hook 2018-09-05 12:06:14 +02:00
Badlop b130567e16 Update mod_rest to work with recent ejabberd's jid instead of jlib (#257) 2018-09-05 12:05:48 +02:00
Badlop f20d6239db Fix mod_webpresence to work with recent ejabberd (#232) 2018-08-21 12:27:44 +02:00
Holger Weiss b7b6af8315 mod_deny_omemo: Also reject actual OMEMO messages
Users might send/receive OMEMO messages using sessions established in
the past.  Let mod_deny_omemo also reject those.
2018-08-17 02:02:47 +02:00
Badlop 7191ddd6f3 Update to compile with recent ejabberd versions 2018-08-08 13:11:57 +02:00
Badlop e138359c7f Update modules for ejabberd 18.06 lack of jlib.hrl and ejabberd.hrl (#251) 2018-07-13 16:18:34 +02:00
Evgeny Khramtsov 562fb1640d
Merge pull request #253 from ytkang/master
Fix mod_pottymouth install error about issue #252
2018-07-11 12:49:11 +03:00
ytkang 8045f4c60e Fix mod_pottymouth install error 2018-07-11 17:46:45 +09:00
Paweł Chmielowski 017ce87198 mod_rest don't really need ejabebrd.hrl 2018-07-02 10:07:44 +02:00
Badlop 06dbe80c65 Add mod_options callback function (#250) 2018-06-27 11:38:17 +02:00
Evgeniy Khramtsov acc32abf17 Add mod_irc.hrl 2018-06-20 11:51:31 +03:00
Evgeniy Khramtsov de4e42c20d Add SQL schemas for mod_irc 2018-06-20 11:47:48 +03:00
Evgeniy Khramtsov 65575478a3 Move here mod_irc module from the main ejabberd repo 2018-06-20 11:38:22 +03:00
Badlop 721ca125ea Update to work with recent ejabberd
TODO:
- Registration does not support enabling/disabling different features
- Avatar does not work at all
- Check all he configurable options are really used
2018-04-28 11:27:31 +02:00
Holger Weiss cd54f70943 mod_s2s_log: Add mod_options/1 callback 2018-04-07 21:47:33 +02:00
Holger Weiss fa5c601325 mod_s2s_log: Remove outdated comments 2018-04-07 21:40:54 +02:00
Holger Weiss d37bb1cd2d mod_message_log: Update init() parameter 2018-04-06 00:00:11 +02:00
Holger Weiss 435d0bcc3d mod_message_log: Update gen_mod:get_opt() call 2018-04-04 02:04:55 +02:00
Holger Weiss 9c3943b703 mod_message_log: Use global process
Start only one mod_message_log process for all virtual hosts.
2018-04-04 01:55:35 +02:00
Holger Weiss 450f2eb5f4 mod_message_log: Fix logging of offline message 2018-04-04 01:44:13 +02:00
Holger Weiss ef7c92233d mod_message_log: Add copyright notice 2018-04-04 01:36:05 +02:00
Holger Weiss 79a804ac3b Update mod_message_log to work with ejabberd 18.x 2018-04-04 01:34:53 +02:00
Holger Weiss 7d2a7aa418 mod_deny_omemo: Fix hook_result() type 2018-03-27 00:21:35 +02:00
Holger Weiss 89c5bc0546 mod_deny_omemo: Fix matching of devicelist queries
Devicelist queries don't include an <item/> element.
2018-03-26 01:35:36 +02:00
Holger Weiss d783cc7cca mod_deny_omemo: Fix node deletion 2018-03-26 01:08:40 +02:00
Holger Weiss d84204bdb8 Import mod_deny_omemo
Add a module that can be used to prevent OMEMO sessions from being
established.
2018-03-19 22:58:32 +01:00