* <p>Route message packets throughout the server.</p>
* <p>Route message packets throughout the server.</p>
* <p>Routing is based on the recipient and sender addresses. The typical
* <p>Routing is based on the recipient and sender addresses. The typical
...
@@ -145,7 +143,7 @@ public class MessageRouter extends BasicModule {
...
@@ -145,7 +143,7 @@ public class MessageRouter extends BasicModule {
// Sent carbon copies to other resources of the sender:
// Sent carbon copies to other resources of the sender:
// When a client sends a <message/> of type "chat"
// 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?