25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

* src/ejabberd_sm.erl: Bugfix

SVN Revision: 1050
This commit is contained in:
Alexey Shchepin 2007-12-07 20:57:44 +00:00
parent 791640fc98
commit d788bd1a27
2 changed files with 30 additions and 25 deletions

View File

@ -1,3 +1,7 @@
2007-12-07 Alexey Shchepin <alexey@process-one.net>
* src/ejabberd_sm.erl: Bugfix
2007-12-07 Badlop <badlop@process-one.net>
* src/Makefile.in: Fix compilation warnings: Part 5: To fix a
@ -35,9 +39,9 @@
2007-12-06 Badlop <badlop@process-one.net>
* src/acl.erl and other 64 files: Remove Erlang module attribute
'vsn' because it doesn't provide any worth feature, and it
difficults hot code update (EJAB-440)
* src/**/*.erl: Remove Erlang module attribute 'vsn' because it
doesn't provide any worth feature, and it difficults hot code
update (EJAB-440)
* src/ejabberdctl.cfg.example: Explain that each connection uses
two or three ports (thanks to Max Loparyev)
@ -49,7 +53,7 @@
* doc/version.tex: Likewise
* doc/introduction.tex: Updated number of translated languages
* src/web/ejabberd_web_admin.erl: Support more native acl_type on
web interface (EJAB-253)
@ -63,7 +67,7 @@
Samuel Tardieu) (EJAB-412)
* src/configure.ac: Likewise
* src/msgs/cs.msg: Updated (thanks to Lukáš Polívka alias
* src/msgs/cs.msg: Updated (thanks to Lukas Polivka alias
Spike411)
* src/mod_muc/mod_muc.erl: Catch creation of table
@ -136,7 +140,7 @@
* doc/guide.tex: Likewise.:ChangeLog
2007-12-02 Badlop <badlop@process-one.net>
* src/ejabberdctl.cfg.example: Bugfix in kernel poll. Added SMP
option. Reorganization of options
* src/ejabberdctl.template: Added SMP option
@ -155,12 +159,12 @@
* doc/ejabberd.hrl: Preparing ejabberd 2.0.0 beta release.
* doc/version.tex: Likewise.
* src/tls/Makefile.win32: Updated for latest Win32 OpenSSL library.
* src/odbc_queries.erl: Added a default define value so that we
can recompile the file manually with a simple erlc command (with the
default generic value).
can recompile the file manually with a simple erlc command (with
the default generic value).
2007-12-01 Alexey Shchepin <alexey@process-one.net>
@ -220,23 +224,23 @@
* doc/guide.tex: It should be made more clear that domain_certfile
works for both s2s and c2s connections (EJAB-212). Added another
example of listening ports.
* doc/guide.tex: Update URI of ejabberd official home page, URI
of ejabberd.jabber.ru, and copyright dates (EJAB-366)
* doc/introduction.tex:
* src/ejabberd.hrl:
* src/ejabberd_admin.erl:
* src/mod_irc/mod_irc.erl:
* src/mod_irc/mod_irc_connection.erl:
* src/mod_muc/mod_muc.erl:
* src/mod_muc/mod_muc_log.erl:
* src/mod_proxy65/mod_proxy65_service.erl:
* src/mod_pubsub/mod_pubsub.erl:
* src/mod_vcard.erl:
* src/mod_vcard_ldap.erl:
* src/mod_vcard_odbc.erl:
* src/msgs/*.msg:
* src/web/ejabberd_web_admin.erl:
* doc/introduction.tex: Likewise
* src/ejabberd.hrl: Likewise
* src/ejabberd_admin.erl: Likewise
* src/mod_irc/mod_irc.erl: Likewise
* src/mod_irc/mod_irc_connection.erl: Likewise
* src/mod_muc/mod_muc.erl: Likewise
* src/mod_muc/mod_muc_log.erl: Likewise
* src/mod_proxy65/mod_proxy65_service.erl: Likewise
* src/mod_pubsub/mod_pubsub.erl: Likewise
* src/mod_vcard.erl: Likewise
* src/mod_vcard_ldap.erl: Likewise
* src/mod_vcard_odbc.erl: Likewise
* src/msgs/*.msg: Updated
* src/web/ejabberd_web_admin.erl: Likewise
2007-11-27 Badlop <badlop@process-one.net>

View File

@ -553,7 +553,8 @@ check_max_sessions(LUser, LServer) ->
%% first one
SIDs = mnesia:dirty_select(
session,
[{#session{us = {LUser, LServer}, _ = '_'}, [], [[]]}]),
[{#session{sid = '$1', us = {LUser, LServer}, _ = '_'}, [],
['$1']}]),
MaxSessions = get_max_user_sessions(LUser, LServer),
if
length(SIDs) =< MaxSessions ->