Commit Graph

203 Commits

Author SHA1 Message Date
Holger Weiss 8e43a20f12 mod_mam_mnesia: Never store error messages
Don't store messages of type "error", even if it has a <store/> hint.
2015-09-02 20:45:40 +02:00
Holger Weiss 91e4c56e67 mod_mam_mnesia: Check for <store/> hint
Respect the <store/> and <pretty-please-store/> hints.  Both tell the
server to store a message even if it would otherwise not be stored
(e.g., because it doesn't have a body).  These hints are not (yet) part
of XEP-0334, though.
2015-09-01 01:21:43 +02:00
Holger Weiss d7fd0f5d68 mod_mam_mnesia: Ignore whitespace within <value/>
Ignore the whitespace when a form field value is specified like this,
for example:

	<value>
	  juliet@example.com
	</value>
2015-08-19 21:46:13 +02:00
Holger Weiss f2652f613f mod_mam_mnesia: Also strip CDATA from <x/> element 2015-08-19 21:46:11 +02:00
Holger Weiss 3e683a7621 mod_mam_mnesia: Strip CDATA from form fields
Don't let mod_mam_mnesia stumble over additional whitespace when parsing
form fields.
2015-08-15 17:58:45 +02:00
Holger Weiss 92a44dfcda mod_mam_mnesia: Accept <encrypted/> messages
The <axolotl_message/> element has been renamed to <encrypted/>.
2015-08-07 15:39:59 +02:00
Holger Weiss 4feba7a5e6 mod_mam_mnesia: Also check for <no-store/> hint
Check for the <no-store/> and <no-permanent-store/> hints in addition to
<no-storage/> and <no-permanent-storage/>.  XEP-0334 (version 0.1)
mentions both variants, and unfortunately, both of them are in use.
2015-07-21 16:18:01 +02:00
Holger Weiss 7697756fb4 mod_mam_mnesia: Fix Axolotl message detection
The <axolotl_message/> element usually doesn't have CDATA content.
2015-07-20 21:58:24 +02:00
Holger Weiss 7e2eb9a578 mod_mam_mnesia: Also store Axolotl messages 2015-07-20 12:53:14 +02:00
Holger Weiss 1477a92b8a mod_statsdx: Recognize Monal and irssi-xmpp 2015-07-13 15:49:31 +02:00
Badlop 51ab9b2467 Detect session closing, not connection closing (thanks to Holger Wei) 2015-07-13 15:49:28 +02:00
Holger Weiss 81d926142d Update mod_log_chat to work with ejabberd 15.06 2015-06-26 00:04:26 +02:00
Holger Weiss 1b726e3d9c Update mod_logxml to work with ejabberd 15.06 2015-06-26 00:04:26 +02:00
Holger Weiss 315d66868f Update mod_post_log to work with ejabberd 15.06 2015-06-26 00:04:26 +02:00
Holger Weiss f35d3021f6 Update mod_statsdx to work with ejabberd 15.06 2015-06-26 00:04:26 +02:00
Holger Weiss 1bc92c83d5 Update mod_message_log to work with ejabberd 15.06 2015-06-26 00:04:26 +02:00
Holger Weiss 9c17da232f Update mod_mam_mnesia to work with ejabberd 15.06 2015-06-26 00:04:26 +02:00
Holger Weiss e5d24089d2 Rename mod_mam to mod_mam_mnesia
Rename mod_mam so that users can continue to run it until we provide an
upgrade path to the mod_mam version shipped with ejabberd 15.06.
2015-06-26 00:02:57 +02:00
Holger Weiss e0557b9e26 Advertise feature in disco info for account JID
As per XEP-0313 >= 0.2, advertise the MAM feature in the service
discovery information for the bare account JID.

Some clients check the server's discovery information instead, so we'll
continue to advertise the feature there as well (at least for the
moment).
2015-04-26 17:17:21 +02:00
Holger Weiss 316bac7b8a Revert "mod_mam: Don't route error bounces to clients"
This reverts commit 8b1eead24b.

As of ejabberd 15.04, the session manager won't deliver error messages
that were sent to bare JIDs anymore, so MAM error messages should no
longer arrive.  Also, the 'c2s_filter_packet_in' hook no longer exists.
2015-04-09 21:59:18 +02:00
Holger Weiss 7c55651da7 Update jlib header from ejabberd master 2015-03-21 20:49:04 +01:00
Badlop bdfe82ce79 Update README files to show configuration file as YAML (#86) 2015-03-13 11:55:26 +01:00
Christophe Romain 7870f77392 binarize mod_profile 2015-03-13 11:13:40 +01:00
Badlop e87dee1a00 Add mod_privacy.hrl as it's needed to compile mod_multicast/src/ejabberd_c2s.erl 2015-03-12 16:01:49 +01:00
Badlop e4c5172b22 Update mod_multicast to work with ejabberd 14.12 2015-03-12 16:01:46 +01:00
Mickaël Rémond e209c00f26 Merge pull request #84 from weiss/omit-subject
mod_admin_extra: Let send_message omit subject
2015-03-12 08:43:13 +01:00
Holger Weiss 7ca2ae6947 mod_admin_extra: Let send_message omit subject
Let the send_message command omit the subject if the user either
specified an empty subject or a message type of "chat".
2015-03-11 20:56:10 +01:00
Holger Weiss 94c690661b mod_statsdx: Call table_name/1 with 'server' atom 2015-03-10 01:54:36 +01:00
Holger Weiss bc7bff10bd mod_statsdx: Fix user registration counters
Closes #82.
2015-03-10 01:38:33 +01:00
badlop ac36d6c6dc Merge pull request #81 from beherit/master
mod_statsdx: Recognize two polish client names
2015-03-09 12:28:42 +01:00
Krzysztof Grochocki 0b4a282f24 mod_statsdx: Recognize two polish client names 2015-03-09 00:28:37 +01:00
Mickaël Rémond af33df5594 ejabberd now use binary data structures 2015-03-06 18:45:25 +01:00
Badlop ff3cddee70 Fix display of Top.. statsdx pages in WebAdmin (#47) 2015-03-05 11:58:11 +01:00
Holger Weiss 15ddd00ad4 mod_mam: Specify namespace for MAM messages
The "jabber:client" namespace must be explicitly specified for MAM
messages, as they would otherwise inherit the "urn:xmpp:forward:0"
namespace.
2015-03-03 07:14:25 +01:00
Holger Weiss 8b1eead24b mod_mam: Don't route error bounces to clients 2015-02-27 23:44:55 +01:00
Holger Weiss 48966d43a9 mod_mam: Don't add 'to' attribute to <result/> tag 2015-02-27 21:56:45 +01:00
Holger Weiss 6b4d521bb1 mod_mam: Specify user's bare JID as 'from' address
Specify the user's bare JID instead of the server's JID as the 'from'
address of our IQ responses and MAM messages.
2015-02-27 21:52:45 +01:00
badlop f749c91e36 Merge pull request #77 from mojolingo/feature/mod_muc_admin/affiliation_change_stanzas
Rely on core routine for handling affiliation changes
2015-02-26 11:48:27 +01:00
Mickaël Rémond 87cb689298 Merge pull request #78 from mojolingo/feature/master-mod_post_log
Add README and license to mod_post_log
2015-02-25 19:46:36 +01:00
Ben Langfeld 66b9d491b9 Add README and license to mod_post_log 2015-02-25 15:43:22 -03:00
Ben Langfeld 7baf2edbc2 Rely on core routine for handling affiliation changes
This ensures that all of the usual stanzas and such go out
2015-02-25 13:08:45 -03:00
Badlop 53ca8bafba Update FSF address (solves #73) 2015-02-25 15:17:31 +01:00
badlop c3310aa417 Merge pull request #75 from mojolingo/feature/master-mod_post_log
mod_post_log
2015-02-25 14:42:54 +01:00
Mickaël Rémond ba2790eca8 Merge pull request #76 from hamano/fix_mod_admin_extra
fix connected_users_info in mod_admin_extra
2015-02-25 07:38:35 +01:00
HAMANO Tsukasa 44aacf2ee4 fix connected_users_info in mod_admin_extra 2015-02-25 13:16:38 +09:00
Holger Weiss d1fe26dd17 mod_admin_extra: Fix private_get/private_set types 2015-02-25 00:46:34 +01:00
Badlop e9f5cb2c14 Fix results binaries 2015-02-23 12:54:33 +01:00
Badlop 537706e9da Remove useless debug text 2015-02-19 17:44:24 +01:00
Mickaël Rémond 0b88690212 Support for using and external HTTP API for authentication 2015-02-19 11:54:49 +01:00
Christophe Romain d40808bd57 upgrade gen_mod to latest version 2015-02-19 10:52:15 +01:00