parent
08ebf50480
commit
13c76c12f8
|
@ -127,7 +127,7 @@ loop(AccessMaxOfflineMsgs) ->
|
|||
%% Function copied from ejabberd_sm.erl:
|
||||
get_max_user_messages(AccessRule, LUser, Host) ->
|
||||
case acl:match_rule(
|
||||
Host, AccessRule, jlib:make_jid(LUser, Host, "")) of
|
||||
Host, AccessRule, exmpp_jid:make(LUser, Host, "")) of
|
||||
Max when is_integer(Max) -> Max;
|
||||
infinity -> infinity;
|
||||
_ -> ?MAX_USER_MESSAGES
|
||||
|
|
|
@ -134,7 +134,7 @@ loop(Host, AccessMaxOfflineMsgs) ->
|
|||
%% Function copied from ejabberd_sm.erl:
|
||||
get_max_user_messages(AccessRule, LUser, Host) ->
|
||||
case acl:match_rule(
|
||||
Host, AccessRule, jlib:make_jid(LUser, Host, "")) of
|
||||
Host, AccessRule, exmpp_jid:make(LUser, Host, "")) of
|
||||
Max when is_integer(Max) -> Max;
|
||||
infinity -> infinity;
|
||||
_ -> ?MAX_USER_MESSAGES
|
||||
|
|
|
@ -52,6 +52,9 @@
|
|||
-include("jlib.hrl").
|
||||
-include("ejabberd_http.hrl").
|
||||
|
||||
%% TODO: Use exmpp library instead of including this
|
||||
-define(NS_STREAM, "http://etherx.jabber.org/streams").
|
||||
|
||||
-record(http_bind, {id, pid, to, hold, wait, version}).
|
||||
|
||||
-define(NULL_PEER, {{0, 0, 0, 0}, 0}).
|
||||
|
|
Loading…
Reference in New Issue