]> granicus.if.org Git - ejabberd/log
ejabberd
13 years agoUse treap for keeping last voice request timestamps
Maxim Ignatenko [Wed, 21 Sep 2011 07:25:32 +0000 (10:25 +0300)]
Use treap for keeping last voice request timestamps

13 years agoFix voice request/approvement detection and extract_jid_from_voice_approvement/1
Maxim Ignatenko [Wed, 21 Sep 2011 04:38:32 +0000 (07:38 +0300)]
Fix voice request/approvement detection and extract_jid_from_voice_approvement/1

13 years agoFix typo
Maxim Ignatenko [Tue, 20 Sep 2011 18:12:07 +0000 (21:12 +0300)]
Fix typo

13 years agoFix patterns in check_voice_request_fields/2 and check_voice_approvement_fields/2
Maxim Ignatenko [Tue, 20 Sep 2011 17:57:50 +0000 (20:57 +0300)]
Fix patterns in check_voice_request_fields/2 and check_voice_approvement_fields/2

13 years agoUse more pattern-matching
Maxim Ignatenko [Tue, 20 Sep 2011 17:27:08 +0000 (20:27 +0300)]
Use more pattern-matching

13 years agoRemove try/catch
Maxim Ignatenko [Tue, 20 Sep 2011 17:06:29 +0000 (20:06 +0300)]
Remove try/catch

13 years agoUse pattern matching in check_voice_request_fields/2 and check_voice_approvement_fields/2
Maxim Ignatenko [Tue, 20 Sep 2011 13:52:53 +0000 (16:52 +0300)]
Use pattern matching in check_voice_request_fields/2 and check_voice_approvement_fields/2

13 years agoReverse arguments order for timer:now_diff/2
Maxim Ignatenko [Tue, 20 Sep 2011 13:28:16 +0000 (16:28 +0300)]
Reverse arguments order for timer:now_diff/2

13 years agoFix return value inconsistency in last_voice_request_time/2
Maxim Ignatenko [Tue, 20 Sep 2011 13:25:44 +0000 (16:25 +0300)]
Fix return value inconsistency in last_voice_request_time/2

13 years agoUse jlib:parse_xdata_submit/1 in is_voice_request/1 and is_voice_approvement/1
Maxim Ignatenko [Tue, 20 Sep 2011 13:04:29 +0000 (16:04 +0300)]
Use jlib:parse_xdata_submit/1 in is_voice_request/1 and is_voice_approvement/1

13 years agoUse bare JID as key in state.last_voice_request_time
Maxim Ignatenko [Tue, 20 Sep 2011 10:30:00 +0000 (13:30 +0300)]
Use bare JID as key in state.last_voice_request_time

13 years agoUse lists:foreach instead of lists:map in send_voice_request/2
Maxim Ignatenko [Tue, 20 Sep 2011 07:55:43 +0000 (10:55 +0300)]
Use lists:foreach instead of lists:map in send_voice_request/2

13 years agoRemove needless time conversions
Maxim Ignatenko [Tue, 20 Sep 2011 07:08:36 +0000 (10:08 +0300)]
Remove needless time conversions

13 years agoIgnore any extra elements in voice approvement form submission
Maxim Ignatenko [Sun, 31 Jul 2011 19:48:56 +0000 (22:48 +0300)]
Ignore any extra elements in voice approvement form submission

13 years agoAdd 2 room config options
Maxim Ignatenko [Fri, 29 Jul 2011 18:22:06 +0000 (21:22 +0300)]
Add 2 room config options

 - Allow voice requests?
 - Minimum interval between voice requests

13 years agoSimple rate control
Maxim Ignatenko [Thu, 28 Jul 2011 17:40:46 +0000 (20:40 +0300)]
Simple rate control

Visitor allowed to send new voice request only after specified amount of
time (or after rejoining).

13 years agoVoice approvement support
Maxim Ignatenko [Mon, 25 Jul 2011 19:46:59 +0000 (22:46 +0300)]
Voice approvement support

13 years agoImplement basic voice request processing logic.
Maxim Ignatenko [Mon, 25 Jul 2011 16:54:45 +0000 (19:54 +0300)]
Implement basic voice request processing logic.

No rate control or configuration for now

13 years agoImplement voice approvement detection and remove some debug code
Maxim Ignatenko [Mon, 25 Jul 2011 16:09:11 +0000 (19:09 +0300)]
Implement voice approvement detection and remove some debug code

13 years agoFix form instructions
Maxim Ignatenko [Sun, 24 Jul 2011 12:25:53 +0000 (15:25 +0300)]
Fix form instructions

13 years agoUse ejabberd_router:route/3 directly, instead of send_packet_to/3
Maxim Ignatenko [Sun, 24 Jul 2011 12:06:12 +0000 (15:06 +0300)]
Use ejabberd_router:route/3 directly, instead of send_packet_to/3

13 years agoUse exception handling in is_invitation/1
Maxim Ignatenko [Sun, 24 Jul 2011 12:01:04 +0000 (15:01 +0300)]
Use exception handling in is_invitation/1

13 years agoFix exception handling in is_voice_request/1
Maxim Ignatenko [Sun, 24 Jul 2011 11:57:13 +0000 (14:57 +0300)]
Fix exception handling in is_voice_request/1

13 years agoImplemented sending voice request and fixed some bugs
Maxim Ignatenko [Sun, 24 Jul 2011 09:46:47 +0000 (12:46 +0300)]
Implemented sending voice request and fixed some bugs

13 years agoAdd function for detecting voice requests
Maxim Ignatenko [Sat, 23 Jul 2011 14:13:27 +0000 (17:13 +0300)]
Add function for detecting voice requests

13 years agoMore correct dispatching of normal messages to conference room
Maxim Ignatenko [Sat, 23 Jul 2011 09:16:17 +0000 (12:16 +0300)]
More correct dispatching of normal messages to conference room

is_invitation/1 function returns true if <x> element of message is
an invitation

13 years agoDecrease CPU usage caused by tls:send with large data.
Janusz Dziemidowicz [Tue, 20 Sep 2011 19:20:51 +0000 (21:20 +0200)]
Decrease CPU usage caused by tls:send with large data.

Sending one large chunk of data with tls:send eats lots of
CPU power and blocks whole Erlang emulator. This is caused by the
fact that encrypted output is read from memory BIO in 1k chunks.
Memory BIO, after reading data, shifts the remaining part.
If large chunks of data (few MB) is sent and then read in 1k
chunks, then a _lot_ of shifting is performed eating CPU.

The solution is to simply allocate binary of the needed size
(amount of data in memory BIO can be retrieved with
BIO_ctrl_pending) and then issue only one read that reads the
whole data.

13 years agoFix mod_muc_log crash when first log entry is room being destroyed (EJAB-1499)
Badlop [Fri, 23 Sep 2011 15:00:50 +0000 (17:00 +0200)]
Fix mod_muc_log crash when first log entry is room being destroyed (EJAB-1499)

13 years agofix broken PEP after EJAB-1498 (thanks to Karim Gemayel)
Christophe Romain [Thu, 22 Sep 2011 18:51:59 +0000 (20:51 +0200)]
fix broken PEP after EJAB-1498 (thanks to Karim Gemayel)

13 years agoejabberdctl doesn't support parameters with blankspaces (EJAB-1458)
Badlop [Wed, 9 Feb 2011 12:30:01 +0000 (13:30 +0100)]
ejabberdctl doesn't support parameters with blankspaces (EJAB-1458)

Revert "Escape output from ctlexec() to erl script (thanks to Dan Scott)(EJAB-1399)"

This reverts commit 6dea2d230714b556118fab6710141a88cc8aad23.

13 years agoFix Denial of Service when user sends malformed publish stanza (thanks to Oleg Smirno...
Christophe Romain [Wed, 21 Sep 2011 12:39:50 +0000 (14:39 +0200)]
Fix Denial of Service when user sends malformed publish stanza (thanks to Oleg Smirnov) (EJAB-1498)

13 years agoadded svg mimetype to default content types (thanks to Markus Kohlhase)
Badlop [Tue, 20 Sep 2011 14:50:22 +0000 (16:50 +0200)]
added svg mimetype to default content types (thanks to Markus Kohlhase)

13 years agoAdd support for @online@ to add_user_to_group
Badlop [Tue, 20 Sep 2011 14:44:51 +0000 (16:44 +0200)]
Add support for @online@ to add_user_to_group

13 years agoNew option support: ldap_deref_aliases (EJAB-639)
Evgeniy Khramtsov [Mon, 19 Sep 2011 06:58:55 +0000 (16:58 +1000)]
New option support: ldap_deref_aliases (EJAB-639)

13 years agoFix dialyzer warnings
Evgeniy Khramtsov [Sat, 17 Sep 2011 00:48:52 +0000 (10:48 +1000)]
Fix dialyzer warnings

13 years agoFix dialyzer warnings
Evgeniy Khramtsov [Thu, 15 Sep 2011 06:59:45 +0000 (16:59 +1000)]
Fix dialyzer warnings

13 years agoNo need to explicitly skip old useless tables, simply fix keep_tables
Badlop [Wed, 14 Sep 2011 10:15:53 +0000 (12:15 +0200)]
No need to explicitly skip old useless tables, simply fix keep_tables

13 years agoFix previous commit
Evgeniy Khramtsov [Fri, 9 Sep 2011 02:40:07 +0000 (12:40 +1000)]
Fix previous commit

13 years agoAvoid crash when performing admin action
Evgeniy Khramtsov [Fri, 9 Sep 2011 02:34:06 +0000 (12:34 +1000)]
Avoid crash when performing admin action

13 years agoFixed support for multi-resource occupants (EJAB-305)
Badlop [Thu, 8 Sep 2011 14:10:38 +0000 (16:10 +0200)]
Fixed support for multi-resource occupants (EJAB-305)

13 years agoFix room config change logging, due to allow_private_messages_from_visitors
Badlop [Thu, 8 Sep 2011 10:34:09 +0000 (12:34 +0200)]
Fix room config change logging, due to allow_private_messages_from_visitors

13 years agoSupport to import XML files without password-format attribute
Badlop [Thu, 8 Sep 2011 09:41:45 +0000 (11:41 +0200)]
Support to import XML files without password-format attribute

13 years agoClarification about system user of ejabberd.init
Badlop [Tue, 6 Sep 2011 11:39:26 +0000 (13:39 +0200)]
Clarification about system user of ejabberd.init

13 years agoFix SCRAM to support attributes which value has only one character
Badlop [Mon, 5 Sep 2011 21:21:38 +0000 (23:21 +0200)]
Fix SCRAM to support attributes which value has only one character

13 years agoFix typo in the Guide about user_regexp
Badlop [Mon, 5 Sep 2011 17:24:05 +0000 (19:24 +0200)]
Fix typo in the Guide about user_regexp

13 years agoFix dialyzer warnings
Evgeniy Khramtsov [Mon, 5 Sep 2011 12:00:50 +0000 (22:00 +1000)]
Fix dialyzer warnings

13 years agoReorganize the code to shut up the dialyzer
Evgeniy Khramtsov [Mon, 5 Sep 2011 11:27:31 +0000 (21:27 +1000)]
Reorganize the code to shut up the dialyzer

13 years agoGet rid of useless check
Evgeniy Khramtsov [Mon, 5 Sep 2011 11:06:18 +0000 (21:06 +1000)]
Get rid of useless check

13 years agoMerge set_affiliation/3 and set_affiliation_and_reason/4 into set_affiliation/4
Evgeniy Khramtsov [Mon, 5 Sep 2011 10:53:01 +0000 (20:53 +1000)]
Merge set_affiliation/3 and set_affiliation_and_reason/4 into set_affiliation/4

13 years agoFix SCRAM auth of uppercase passwords (EJAB-1196)
Badlop [Mon, 5 Sep 2011 10:48:26 +0000 (12:48 +0200)]
Fix SCRAM auth of uppercase passwords (EJAB-1196)

13 years agoRemove useless clauses
Evgeniy Khramtsov [Mon, 5 Sep 2011 08:07:50 +0000 (18:07 +1000)]
Remove useless clauses

13 years agoAdd some magic in order to shut up the dialyzer (because I do not want to replace...
Evgeniy Khramtsov [Mon, 5 Sep 2011 07:33:51 +0000 (17:33 +1000)]
Add some magic in order to shut up the dialyzer (because I do not want to replace the macro with a function)

13 years agoFix potential case-clause crash
Evgeniy Khramtsov [Mon, 5 Sep 2011 07:27:15 +0000 (17:27 +1000)]
Fix potential case-clause crash

13 years agoRemove useless case clause
Evgeniy Khramtsov [Mon, 5 Sep 2011 07:12:45 +0000 (17:12 +1000)]
Remove useless case clause

13 years agoReplace VVALUEL macro with function in order to shut up the dialyzer
Evgeniy Khramtsov [Mon, 5 Sep 2011 07:09:36 +0000 (17:09 +1000)]
Replace VVALUEL macro with function in order to shut up the dialyzer

13 years agoMerge branch '2.1.x' of git+ssh://gitorious.process-one.net/ejabberd/mainline into...
Evgeniy Khramtsov [Mon, 5 Sep 2011 06:53:10 +0000 (16:53 +1000)]
Merge branch '2.1.x' of git+ssh://gitorious.process-one.net/ejabberd/mainline into 2.1.x

13 years agoExport do_client_version/3 in order to shut up the dialyzer
Evgeniy Khramtsov [Mon, 5 Sep 2011 06:52:36 +0000 (16:52 +1000)]
Export do_client_version/3 in order to shut up the dialyzer

13 years agoRemove useless case clauses
Evgeniy Khramtsov [Mon, 5 Sep 2011 06:48:04 +0000 (16:48 +1000)]
Remove useless case clauses

13 years agoRemove useless case clause
Evgeniy Khramtsov [Mon, 5 Sep 2011 06:47:18 +0000 (16:47 +1000)]
Remove useless case clause

13 years agoCorrect some function clauses and value types
Evgeniy Khramtsov [Mon, 5 Sep 2011 06:31:58 +0000 (16:31 +1000)]
Correct some function clauses and value types

13 years agoGet rid of useless code
Evgeniy Khramtsov [Mon, 5 Sep 2011 05:59:30 +0000 (15:59 +1000)]
Get rid of useless code

13 years agoejabberd_auth:remove_user/2 always returns ok
Evgeniy Khramtsov [Mon, 5 Sep 2011 05:39:55 +0000 (15:39 +1000)]
ejabberd_auth:remove_user/2 always returns ok

13 years agoFix some case clauses
Evgeniy Khramtsov [Mon, 5 Sep 2011 05:35:46 +0000 (15:35 +1000)]
Fix some case clauses

13 years agoChange argument of open_port/2 to string in order to shut up the dialyzer
Evgeniy Khramtsov [Mon, 5 Sep 2011 05:28:01 +0000 (15:28 +1000)]
Change argument of open_port/2 to string in order to shut up the dialyzer

13 years agoGet rid of useless function clause
Evgeniy Khramtsov [Mon, 5 Sep 2011 05:13:54 +0000 (15:13 +1000)]
Get rid of useless function clause

13 years agoReplace calls of OTP's Binary, since they would require R14
Badlop [Sun, 4 Sep 2011 12:56:56 +0000 (14:56 +0200)]
Replace calls of OTP's Binary, since they would require R14

13 years agoFirst check occupant existence, later check the message
Badlop [Sun, 4 Sep 2011 11:28:32 +0000 (13:28 +0200)]
First check occupant existence, later check the message

13 years agoenable pubsub#deliver_notification checking (thanks to Karim Gemayel)(EJAB-1453)
Christophe Romain [Wed, 31 Aug 2011 14:11:01 +0000 (16:11 +0200)]
enable pubsub#deliver_notification checking (thanks to Karim Gemayel)(EJAB-1453)

13 years agoExplicitly skip useless ejabberd 2.0* mnesia tables when restoring backup
Badlop [Mon, 29 Aug 2011 10:36:49 +0000 (12:36 +0200)]
Explicitly skip useless ejabberd 2.0* mnesia tables when restoring backup

Reference:
http://www.ejabberd.im/node/4867

13 years agotypo fix (thanks to Artem Sh)(EJAB-1424)
Christophe Romain [Thu, 25 Aug 2011 15:22:48 +0000 (17:22 +0200)]
typo fix (thanks to Artem Sh)(EJAB-1424)

13 years agoSupport multiple sessions per nick in muc_online_users, relevant for max_user_confere...
Badlop [Tue, 23 Aug 2011 19:53:41 +0000 (21:53 +0200)]
Support multiple sessions per nick in muc_online_users, relevant for max_user_conferences (EJAB-305)

13 years agoSend private messages to all the sessions with same nick (EJAB-305)
Badlop [Tue, 23 Aug 2011 19:53:30 +0000 (21:53 +0200)]
Send private messages to all the sessions with same nick (EJAB-305)

13 years agoDon't send unavailable presence when leaving occupant has other nicks in the room...
Badlop [Tue, 23 Aug 2011 19:53:19 +0000 (21:53 +0200)]
Don't send unavailable presence when leaving occupant has other nicks in the room (EJAB-305)

13 years agoAllow multiple entry with same nick to MUC rooms (thanks to Magnus Henoch)(EJAB-305)
Badlop [Fri, 21 Aug 2009 13:22:18 +0000 (15:22 +0200)]
Allow multiple entry with same nick to MUC rooms (thanks to Magnus Henoch)(EJAB-305)

13 years agoNew option resource_conflict defines server action (thanks to Lee Boynton)(EJAB-650)
Badlop [Wed, 17 Aug 2011 17:42:11 +0000 (19:42 +0200)]
New option resource_conflict defines server action (thanks to Lee Boynton)(EJAB-650)

13 years agoFix bug in scram is_alpha
Badlop [Wed, 17 Aug 2011 17:33:58 +0000 (19:33 +0200)]
Fix bug in scram is_alpha

13 years agoFix ODBC account counting (thanks to Artem Sh)(EJAB-1491)
Badlop [Tue, 16 Aug 2011 17:33:22 +0000 (19:33 +0200)]
Fix ODBC account counting (thanks to Artem Sh)(EJAB-1491)

13 years agoFix and improve support for SCRAM auth method (EJAB-1196)
Badlop [Mon, 15 Aug 2011 22:26:49 +0000 (00:26 +0200)]
Fix and improve support for SCRAM auth method (EJAB-1196)

13 years agoIndicate license and copyright (thanks to Stephen Röttger)(EJAB-1196)
Badlop [Mon, 15 Aug 2011 22:25:40 +0000 (00:25 +0200)]
Indicate license and copyright (thanks to Stephen Röttger)(EJAB-1196)

13 years agoPreliminary patch for SASL SCRAM-SHA-1 (thanks to Stephen Röttger)(EJAB-1196)
Badlop [Mon, 15 Aug 2011 22:25:03 +0000 (00:25 +0200)]
Preliminary patch for SASL SCRAM-SHA-1 (thanks to Stephen Röttger)(EJAB-1196)

13 years agohandle case when roster version on DB is enabled but version is not found.
Pablo Polvorin [Fri, 5 Aug 2011 15:21:24 +0000 (12:21 -0300)]
handle case when roster version on DB is enabled but version is not found.

Thanks Evgeniy.

13 years agoAdd comment about ping requests sent even to non-supporting clients
Badlop [Thu, 4 Aug 2011 16:29:13 +0000 (18:29 +0200)]
Add comment about ping requests sent even to non-supporting clients

13 years agoVerify username provided in registration web form
Badlop [Wed, 27 Jul 2011 10:25:51 +0000 (12:25 +0200)]
Verify username provided in registration web form

13 years agoHandle case when ejabberd_auth_* says the account exists
Badlop [Wed, 27 Jul 2011 09:44:35 +0000 (11:44 +0200)]
Handle case when ejabberd_auth_* says the account exists

13 years agoInclude status 110 in presence to new occupant (EJAB-740)
Badlop [Sat, 16 Jul 2011 17:26:20 +0000 (19:26 +0200)]
Include status 110 in presence to new occupant (EJAB-740)

13 years agoFix typo in modules overview
Badlop [Fri, 15 Jul 2011 00:53:32 +0000 (02:53 +0200)]
Fix typo in modules overview

13 years agoUse #roster record instead of direct tuple
Badlop [Wed, 13 Jul 2011 15:06:17 +0000 (17:06 +0200)]
Use #roster record instead of direct tuple

13 years agoDocument ldap_tls_cacertfile and ldap_tls_depth options (EJAB-1299)
Evgeniy Khramtsov [Wed, 13 Jul 2011 05:57:01 +0000 (15:57 +1000)]
Document ldap_tls_cacertfile and ldap_tls_depth options (EJAB-1299)

13 years agoAdd ldap_tls_cacertfile and ldap_tls_depth options (EJAB-1299)
Evgeniy Khramtsov [Wed, 13 Jul 2011 05:40:27 +0000 (15:40 +1000)]
Add ldap_tls_cacertfile and ldap_tls_depth options (EJAB-1299)

13 years agoRoom option to ignore private messages from visitors (thanks to Maxim Ignatenko)
Badlop [Mon, 11 Jul 2011 15:33:26 +0000 (17:33 +0200)]
Room option to ignore private messages from visitors (thanks to Maxim Ignatenko)

13 years agoOne more fix
Maxim Ignatenko [Sat, 9 Jul 2011 17:23:05 +0000 (20:23 +0300)]
One more fix

13 years agoImprove spelling and fix some typos
Maxim Ignatenko [Sat, 9 Jul 2011 17:17:11 +0000 (20:17 +0300)]
Improve spelling and fix some typos

13 years agoFix reference to 'admin' ACL name (thanks to Samuel Wejeus)(EJAB-1476)
Badlop [Tue, 5 Jul 2011 14:32:48 +0000 (16:32 +0200)]
Fix reference to 'admin' ACL name (thanks to Samuel Wejeus)(EJAB-1476)

13 years agoMerge branch '2.1.x' of git+ssh://git@gitorious.process-one.net/ejabberd/mainline...
Alexey Shchepin [Sun, 3 Jul 2011 15:58:45 +0000 (18:58 +0300)]
Merge branch '2.1.x' of git+ssh://git@gitorious.process-one.net/ejabberd/mainline.git into 2.1.x

13 years agoMinor mod_version bugfix
Alexey Shchepin [Sun, 3 Jul 2011 15:58:07 +0000 (18:58 +0300)]
Minor mod_version bugfix

13 years agois_user_in_group/3 must check if user belongs to given Group from Host specified...
Juan Pablo Carlino [Fri, 1 Jul 2011 15:11:09 +0000 (12:11 -0300)]
is_user_in_group/3 must check if user belongs to given Group from Host specified on third argument.

* is_user_in_group/3 was checking if given user (passed on first parameter as
a bare jid) belonged to group of the server derived from this jid.

13 years agoOptimized mod_roster_odbc:get_roster
Alexey Shchepin [Wed, 29 Jun 2011 08:56:23 +0000 (11:56 +0300)]
Optimized mod_roster_odbc:get_roster

13 years agoSupport servers that reply error on any command before registration (thanks to Gelraen)
Badlop [Tue, 28 Jun 2011 21:04:12 +0000 (23:04 +0200)]
Support servers that reply error on any command before registration (thanks to Gelraen)

This makes mod_irc actually work with servers that reply with error
on any command before the registration procedure is completed.
Such servers, after NICK/USER they send PING and wait for client response.
In such situation they reply with message 451 to CODEPAGE command,
and mod_irc thinks that connection failed.

Example IRC server that works thanks to the patch: irc.mibbit.com

13 years agoComment in the cfg file the correct node name used in ejabberdctl.template
Badlop [Mon, 27 Jun 2011 22:31:13 +0000 (00:31 +0200)]
Comment in the cfg file the correct node name used in ejabberdctl.template

13 years agoMatch ldap_uidattr_format case-insensitively (EJAB-1449)
Evgeniy Khramtsov [Thu, 23 Jun 2011 05:14:15 +0000 (15:14 +1000)]
Match ldap_uidattr_format case-insensitively (EJAB-1449)