Sounds like Tor Chat (or libertes cables system). This is a flawed design, hidden services have much less anonymity than regular Tor clients and having chat protocols where two parties both run as hidden services decreases the anonymity of both of them. It would be better for anonymity if they communicated through a hidden service as regular Tor clients.