diff --git a/src/mod_register.erl b/src/mod_register.erl index d885e0904..e67a4fca0 100644 --- a/src/mod_register.erl +++ b/src/mod_register.erl @@ -82,7 +82,7 @@ unauthenticated_iq_register(_Acc, BareJID, IQ_Rec, Address), - exmpp_iq:iq_to_xmlel(ResIQ, BareJID, undefined); + exmpp_iq:iq_to_xmlel(ResIQ, BareJID, exmpp_jid:make()); unauthenticated_iq_register(Acc, _Server, _IQ, _IP) -> Acc.