mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix call to exmpp_stanza:error
This commit is contained in:
parent
dd69d47543
commit
b605295f9d
@ -586,7 +586,7 @@ discard_warn_sender(Msgs) ->
|
|||||||
lists:foreach(
|
lists:foreach(
|
||||||
fun(#offline_msg{from=From, to=To, packet=Packet}) ->
|
fun(#offline_msg{from=From, to=To, packet=Packet}) ->
|
||||||
ErrText = "Your contact offline message queue is full. The message has been discarded.",
|
ErrText = "Your contact offline message queue is full. The message has been discarded.",
|
||||||
Error = exmpp_stanza:error('resource-constraint',
|
Error = exmpp_stanza:error(Packet#xmlel.ns, 'resource-constraint',
|
||||||
{"en", ErrText}),
|
{"en", ErrText}),
|
||||||
Err = exmpp_stanza:reply_with_error(Packet, Error),
|
Err = exmpp_stanza:reply_with_error(Packet, Error),
|
||||||
ejabberd_router:route(
|
ejabberd_router:route(
|
||||||
|
@ -353,7 +353,7 @@ discard_warn_sender(Msgs) ->
|
|||||||
lists:foreach(
|
lists:foreach(
|
||||||
fun(#offline_msg{from=From, to=To, packet=Packet}) ->
|
fun(#offline_msg{from=From, to=To, packet=Packet}) ->
|
||||||
ErrText = "Your contact offline message queue is full. The message has been discarded.",
|
ErrText = "Your contact offline message queue is full. The message has been discarded.",
|
||||||
Error = exmpp_stanza:error('resource-constraint',
|
Error = exmpp_stanza:error(Packet#xmlel.ns, 'resource-constraint',
|
||||||
{"en", ErrText}),
|
{"en", ErrText}),
|
||||||
Err = exmpp_stanza:reply_with_error(Packet, Error),
|
Err = exmpp_stanza:reply_with_error(Packet, Error),
|
||||||
ejabberd_router:route(
|
ejabberd_router:route(
|
||||||
|
Loading…
Reference in New Issue
Block a user