diff --git a/src/mod_offline.erl b/src/mod_offline.erl index 2edd015f5..6849e7acc 100644 --- a/src/mod_offline.erl +++ b/src/mod_offline.erl @@ -586,7 +586,7 @@ discard_warn_sender(Msgs) -> lists:foreach( fun(#offline_msg{from=From, to=To, packet=Packet}) -> 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}), Err = exmpp_stanza:reply_with_error(Packet, Error), ejabberd_router:route( diff --git a/src/mod_offline_odbc.erl b/src/mod_offline_odbc.erl index 0004c9d0d..55374901e 100644 --- a/src/mod_offline_odbc.erl +++ b/src/mod_offline_odbc.erl @@ -353,7 +353,7 @@ discard_warn_sender(Msgs) -> lists:foreach( fun(#offline_msg{from=From, to=To, packet=Packet}) -> 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}), Err = exmpp_stanza:reply_with_error(Packet, Error), ejabberd_router:route(