Commit Graph

498 Commits

Author SHA1 Message Date
Badlop 857d350a71 Update some modules to work with ejabberd 19.08 (#277) 2019-08-19 20:42:03 +02:00
Badlop 4753268b5f Update copyright of other modules 2019-07-17 10:45:29 +02:00
Badlop a4465fbeaa Update copyright of scram2.erl to 2019 (thanks to Neustradamus) 2019-07-15 18:31:38 +02:00
Holger Weiss f2faca6dc9 mod_spam_filter: Fix unregistration of global hook
Don't unregister the 'reopen_log_hook' if the module is loaded for
another host.
2019-07-14 15:10:11 +02:00
Holger Weiss b410f64f33 mod_spam_filter: Fix previous simplification 2019-07-13 15:01:07 +02:00
Holger Weiss 7c1b83941c mod_spam_filter: Apply small code simplification 2019-07-13 14:43:16 +02:00
Holger Weiss 2a7ae832a8 mod_spam_filter: Fix function specification 2019-07-12 21:11:21 +02:00
Holger Weiss 4af4244975 mod_spam_filter: Remove unused macro 2019-07-12 14:29:13 +02:00
Evgeny Khramtsov 9404980f0d Use new validator in mod_deny_omemo 2019-06-21 21:46:24 +03:00
Badlop 0db6868aa6 Fix wrong encoding of filenames in mod_log_chat (#275) 2019-06-05 13:14:03 +02:00
Mickaël Rémond fc2dfb0f1d
Better error handling 2019-05-17 11:10:41 +02:00
Holger Weiss 48f5cc3b88 mod_default_contacts: Fix configuration example
Thanks to Thomas Leister for reporting the issue.
2019-05-14 20:45:37 +02:00
Holger Weiss 6bf9a45c93 mod_default_contacts: Fix spec file name
Thanks to Thomas Leister for reporting the mistake.
2019-05-14 19:25:39 +02:00
Holger Weiss 4cb537c693 Import mod_default_contacts
Add a module that can be used to auto-add contacts to the user's roster
on registration.
2019-05-14 00:07:23 +02:00
Holger Weiss 5f612b7dab mod_default_rooms: Set empty "rooms" by default
Explicitly specify an empty list of "rooms" in the default configuration
file, just to make configuration slightly more intuitive.
2019-05-12 22:59:31 +02:00
Holger Weiss 694b45474c mod_default_rooms: Fix example in documentation
The @HOST@ keyword is not supported.
2019-05-12 22:42:10 +02:00
Badlop b07766ab93 Include Content-Type header in POST requests (#273) 2019-05-07 20:11:10 +02:00
Holger Weiss 689f526cea mod_spam_filter: Register 'reopen_log_hook'
Don't forget to register the 'reopen_log_hook' for reopening the spam
dump file.

Thanks to Nico Wellpott for reporting this issue.
2019-05-05 21:49:34 +02:00
Holger Weiss 34bf1a7d6c mod_spam_filter: Add some debug output
Log a [debug] line when the spam dump file is opened or closed.
2019-05-05 21:33:53 +02:00
Holger Weiss 0bf94ba446 mod_spam_filter: Update type specification 2019-04-25 18:27:11 +02:00
Holger Weiss 92fadcdf4e mod_spam_filter: Auto-create dump directory
If the directory holding the specified "spam_dump_file" doesn't exist,
create it on startup.
2019-04-25 18:23:17 +02:00
Holger Weiss fe121057f2 mod_spam_filter: Don't create wrong dump file name
Don't attempt creation of the dump file while checking the validity of
the "spam_dump_file" option, as the @HOST@ keyword can't be expanded at
this point.

Thanks to Nico Wellpott for reporting this issue.
2019-04-25 17:53:42 +02:00
Holger Weiss cb0a14c89a mod_spam_filter: Check whether module is loaded
If the API commands are called with 'global' instead of a host name,
only run the command for those virtual hosts that actually have the
module loaded.
2019-04-25 11:08:32 +02:00
Holger Weiss 4476c95f14 mod_spam_filter: Silence reload_spam_filter_files
Don't let the reload_spam_filter_files command spit out text on success.
2019-04-25 10:05:47 +02:00
Holger Weiss a0a9aaa1e0 mod_default_rooms: Don't depend on mod_register
The mod_default_rooms module doesn't just work in conjunction with
mod_register, as bookmarks are also auto-added for users registered via,
for example, the "ejabberdctl register" command.  Update the code and
the documentation accordingly.

Thanks to Licaon_Kter for noting this.
2019-04-24 19:45:38 +02:00
Holger Weiss 4e15dcbd7d mod_spam_filter: Clarify "spam_dump_file" docs
Mention that the spam messages will be dumped in raw XML format, and
that a <delay/> tag is added.
2019-04-24 19:36:23 +02:00
Holger Weiss 6fc4fccfbb mod_spam_filter: Adjust docs regarding file paths
The specified file paths don't actually have to be absolute path names.
2019-04-24 19:22:36 +02:00
Holger Weiss 362c866862 mod_spam_filter: Add "spam_dump_file" option
If the new "spam_dump_file" option is used, messages classified as spam
will be written to the specified file path.
2019-04-24 19:19:15 +02:00
Holger Weiss e26ea15d7f Merge remote-tracking branch 'processone/pr/271'
* processone/pr/271:
  Stop the OMEMO hate
2019-04-24 15:13:02 +02:00
Licaon_Kter 86f90153c4
Stop the OMEMO hate 2019-04-24 12:26:50 +03:00
Holger Weiss c1591030b0 mod_spam_filter: Don't filter MUC messages 2019-04-15 00:15:10 +02:00
Holger Weiss 4787e890af mod_spam_filter: Fix typo in log message 2019-04-10 01:49:39 +02:00
Holger Weiss 05a5f002a3 mod_spam_filter: Return error for presence spam
Also return an error stanza for rejected presence spam, not just for
rejected messages.
2019-04-10 01:34:19 +02:00
Holger Weiss e6249c41e2 mod_spam_filter: Also log spam recipient
Also log the recipient of rejected stanzas, not just the sender.
2019-04-10 01:12:20 +02:00
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