Disabling OTR in Spark

Version 2

    How I can disable OTR in Spark?


    OTR is an encrypted comminucation between two clients that is based on personal certificates. It has a high level of encryption and con not the read by anyone else that the two partners. In a corporate environment, this might be problematic for compliance/legal reasons since companys might be required to document internal discussions (SOX compliance, Anti trust regulation etc.).



    There are two ways to disable it:


    1. Repackage Spark to prvent the distribution of the OTR plugin
    2. Disable the negotiation of the OTR connection between two clients.



    • Packet-filtering, or content-filtering, rather, is how I've disabled OTR for my users. It's pretty simple:
      Go to Server -> Server Settings -> Content Filter.  Set your pattern to "\?OTR" and enable the filter.
      Users attempting to enable OTR chat will see it trying to initialize and it will timeout after 10 seconds. 


    Based on Disabling OTR in Spark2.6.3