Changeset - 5c84b1bcaaa1
[Not reviewed]
0 1 0
HanzZ - 14 years ago 2011-11-08 17:14:34
hanzz.k@gmail.com
Ignore empty messages in AdminInterface
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/admininterface.cpp
Show inline comments
 
@@ -66,6 +66,11 @@ void AdminInterface::handleMessageReceived(Swift::Message::ref message) {
 
		return;
 
	}
 

	
 
	// Ignore empty messages
 
	if (message->getBody().empty()) {
 
		return;
 
	}
 

	
 
	LOG4CXX_INFO(logger, "Message from admin received");
 
	message->setTo(message->getFrom());
 
	message->setFrom(m_component->getJID());
0 comments (0 inline, 0 general)