131,132c131,132 < // allow empty pubsub messages (OF-191) < if (message.getChildElement("event", "http://jabber.org/protocol/pubsub#event") == null) --- > // allow empty pubsub messages (OF-191) and empty MUC invitations > if (message.getChildElement("event", "http://jabber.org/protocol/pubsub#event") == null && message.getChildElement("x", "http://jabber.org/protocol/muc#user")==null) 134c134 < return; --- > return; 135a136,137 > > 145c147 < // Do not store messages sent to users of remote servers --- > // Do not store messages sent to users of remote servers