From b605295f9dd223b78b6f72722958b985ac62955e Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 18 Jun 2010 16:41:47 +0200 Subject: [PATCH] Fix call to exmpp_stanza:error --- src/mod_offline.erl | 2 +- src/mod_offline_odbc.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(