Changeset - bc97b0fb7747
[Not reviewed]
0 1 0
Jan Kaluza - 14 years ago 2011-06-28 10:32:14
hanzz.k@gmail.com
Always setFrom for incoming stanzas to full jid
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
include/Swiften/Server/ServerStanzaChannel.cpp
Show inline comments
 
@@ -116,9 +116,7 @@ void ServerStanzaChannel::handleElement(boost::shared_ptr<Element> element, cons
 
		return;
 
	}
 

	
 
	if (stanza->getFrom().toString().empty()) {
 
		stanza->setFrom(session->getRemoteJID());
 
	}
 
	stanza->setFrom(session->getRemoteJID());
 

	
 
	if (!stanza->getFrom().isValid())
 
		return;
0 comments (0 inline, 0 general)