aboutsummaryrefslogtreecommitdiff
path: root/src/jlib.erl (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-06-14Get rid of jlib.hrl/jlib.erlEvgeniy Khramtsov1-1002/+0
2018-06-14Get rid of ejabberd.hrl headerEvgeniy Khramtsov1-1/+0
The header consisted of too many unrelated stuff and macros misuse. Some stuff is moved into scram.hrl and type_compat.hrl. All macros have been replaced with the corresponding function calls. TODO: probably type_compat.hrl is not even needed anymore since we support only Erlang >= OTP 17.5
2018-01-05Update copyright datesEvgeniy Khramtsov1-1/+1
2017-05-10Update comment: aux.erl was renamed to misc.erlBadlop1-1/+1
2017-03-30Deprecate jlib.erl in favor of aux.erlEvgeniy Khramtsov1-1/+19
Since the main goal of jlib.erl is lost, all auxiliary functions are now moved to aux.erl, and the whole jlib.erl is now deprecated.
2017-03-27ejabberd_http: Expand @VERSION@ in custom headersHolger Weiss1-1/+7
Let ejabberd_http expand the @VERSION@ keyword to the ejabberd version if specified in the "custom_headers" listener option. Closes #1414.
2017-03-16prosody2ejabberd: Fix SCRAM hash conversionHolger Weiss1-0/+18
Closes #1549.
2017-03-10Add support for file-based queuesEvgeniy Khramtsov1-47/+1
It's now possible to use files as internal packet queues. The following options are introduced: * queue_type: the option can be set to `ram` (default) or `file`. The option can be set per virtual host. * queue_dir: path to the directory where queues will be allocated. The default is 'queue' directory inside Mnesia directory. This is a global option and cannot be set per virtual host.
2017-02-26Get rid of jid:to_string/1 and jid:from_string/1Evgeniy Khramtsov1-6/+7
2017-02-25Don't pass empty resource to jid:make()Evgeniy Khramtsov1-1/+1
2017-01-02Update copyright date automatically (#1442)Badlop1-1/+1
2016-12-28Add xmpp_stream_out behaviour and rewrite s2s/SM codeEvgeniy Khramtsov1-2/+32
2016-11-24Get rid of excessive (io)list_to_binary/1 callsEvgeniy Khramtsov1-4/+4
2016-11-13Deprecate most of the functions from jlib.erlEvgeniy Khramtsov1-11/+46
2016-09-24Deprecate jlib:integer_to_binary/1 and jlib:binary_to_integer/1Evgeniy Khramtsov1-1/+3
2016-09-07Merge pull request #1253 from Amuhar/xep0356Christophe Romain1-2/+7
2016-07-18jlib: Don't try to keep just one <delay/> tagHolger Weiss1-27/+2
It seems unclear whether XEP-0203 really mandates that stanzas may not have multiple <delay/> tags. Editing/removing existing tags doesn't seem worth the effort, especially as we'd have to take more care which tag to keep if the stanza already has more than one.
2016-07-01Fix compilation issues on R19Paweł Chmielowski1-34/+13
2016-06-05Simplify check for carbon-copied chat statesHolger Weiss1-8/+13
Let jlib:is_standalone_chat_state/1 unwrap carbon copies rather than leaving this to the caller. We still export jlib:unwrap_carbon/1, as this function might also be useful for other purposes.
2016-06-03Unwrap carbon copies when checking for chat statesHolger Weiss1-1/+44
Detect standalone chat states that were carbon-copied.
2016-06-03Ignore <delay/> when checking for chat statesHolger Weiss1-1/+3
Ignore XEP-0203 elements when checking whether a message stanza is a standalone chat state.
2016-05-05Add missed jlib:term_to_expr and jlib:expr_to_term functionsAlexey Shchepin1-1/+10
2016-04-24Match namespace when checking for chat statesHolger Weiss1-4/+2
When checking for standalone chat states, match the namespace rather than the names of the elements defined in the current XEP-0085 revision.
2016-04-24Fix check for standalone chat state notificationsHolger Weiss1-14/+5
Ignore whitespace (and other XML CDATA) when checking whether a message stanza is a standalone chat state notification.
2016-02-03Switch to Fast XML moduleMickael Remond1-27/+27
2016-01-23rename timestamp function #917HAMANO Tsukasa1-3/+15
2016-01-13Update copyright to 2016 (#901)Badlop1-1/+1
2015-12-22Use built-in nif for integer_to_binary/binary_to_integerPaweł Chmielowski1-4/+4
2015-11-26mod_offline: Support discarding chat statesHolger Weiss1-0/+21
XEP-0160 says that standalone chat state notifications should not be stored offline. By default, mod_offline discards them now. Closes #842.
2015-11-24Make JID related functions from jlib.erl deprecatedEvgeniy Khramtsov1-0/+12
2015-11-24Move JID related functions to jid.erl (#847)Evgeniy Khramtsov1-138/+27
2015-11-03Faster string_to_jid/1 implementationPaweł Chmielowski1-32/+48
This version is about 10-15% faster than old one
2015-08-04Add split_jid/1Mickael Remond1-1/+8
This is a convenience reverse of make_jid/1. It allows extracting the jid parts without relying on using the jid record structure, to abstract details.
2015-05-21Document protocol support (EJABS-1620)Badlop1-0/+4
2015-05-20Fix function specificationHolger Weiss1-2/+2
2015-05-18Simplify XEP-0203 (Delayed Delivery) code a bitHolger Weiss1-14/+7
Now that XEP-0091 support is removed, the XEP-0203 code can be simplified a little further. This doesn't change the behavior.
2015-05-18Remove deprecated XEP-0090 Entity Time and 91 Delayed Delivery (EJAB-849)Badlop1-16/+5
2015-04-08Remove hack with binary to integer conversionEvgeniy Khramtsov1-4/+2
2015-03-27Fix lite.sql and convert binary to integerSergey Abramyan1-2/+4
2015-02-23Add compatibility macros for deprecated types (thanks to Alexey)Christophe Romain1-1/+2
2015-01-23Fix a few function specificationsHolger Weiss1-5/+6
2015-01-21Increment number of seconds on timestamp overflowHolger Weiss1-8/+9
Increment the number of seconds and set the fractional part to zero if the latter is too large.
2015-01-21Don't match integer() against float() valueHolger Weiss1-1/+1
2015-01-21Fix overflow in XEP-0203 delay: if microseconds exceeded 999499, *** was put ↵Nathan Bruning1-1/+5
in the formatted timestamp
2015-01-08Update copyright dates to 2015 (EJAB-1733)Badlop1-1/+1
2014-12-12Let jlib use "B" instead of "w" to format integersHolger Weiss1-8/+8
As a small optimization, use io:format's "B" control sequence to format integers. We don't need to let Erlang figure out the data type if we already know it.
2014-12-11Add fractions of seconds to <delay/> timestampsHolger Weiss1-9/+14
Include fractions of a second with XEP-0203 <delay/> timestamps, as specified in XEP-0082. Old timestamp: 2014-05-19T11:55:00Z New timestamp: 2014-05-19T11:55:00.123Z
2014-12-07Improve interface for adding timestampsHolger Weiss1-31/+77
Provide a simpler interface for adding <delay/> and <x/> timestamps to stanzas. This also makes sure that only one <delay/> tag and one <x/> tag is added to a given stanza.
2014-10-25Accept trailing whitespace in Base64 stringsHolger Weiss1-1/+6
2014-07-05Revert "Fix IQ XML generation."Evgeniy Khramtsov1-11/+3
This reverts commit 26a4d91297a7d7400dbdd30a063e163afa83fb22.