* <p>Route message packets throughout the server.</p>
* <p>Routing is based on the recipient and sender addresses. The typical
...
...
@@ -145,7 +143,7 @@ public class MessageRouter extends BasicModule {
// Sent carbon copies to other resources of the sender:
// When a client sends a <message/> of type "chat"
if(packet.getType()==Message.Type.chat&&!isPrivate){// && session.isMessageCarbonsEnabled() ??? // must the own session also be carbon enabled?
if(packet.getType()==Message.Type.chat&&!isPrivate&&session!=null){// && session.isMessageCarbonsEnabled() ??? // must the own session also be carbon enabled?