Ignore empty messages in AdminInterface

This commit is contained in:
HanzZ 2011-11-08 17:14:34 +01:00
parent 6ff8b24992
commit 5c84b1bcaa

View file

@ -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());