handleOutgoingCrossServerMessage

suspend fun handleOutgoingCrossServerMessage(sender: Player, targetName: String, targetServerName: String, message: String): String(source)

Handles the sender-side display of an outgoing cross-server direct message. Applies romaji conversion, shows the message to the sender and notifies spies.

The reply target is recorded by the caller via recordRemoteRecipient before the delivery is queued, for the same reason as sendDirectMessage: /reply reads it on the command thread.

Return

the message body to relay (romaji-converted if applicable), since the receiving server has no access to the sender's settings.