Ignore empty messages in AdminInterface
This commit is contained in:
parent
6ff8b24992
commit
5c84b1bcaa
1 changed files with 5 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue