From 7eba87da166fa335cf0409ec12b83154544812bc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 10 Feb 2017 23:16:33 +0000 Subject: [PATCH] Opportunistic OTR --- src/freedombone-app-xmpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/freedombone-app-xmpp b/src/freedombone-app-xmpp index 260e0e08..28700ff7 100755 --- a/src/freedombone-app-xmpp +++ b/src/freedombone-app-xmpp @@ -217,6 +217,9 @@ function add_user_xmpp { echo '' >> /home/$new_username/.config/profanity/profrc echo '[plugins]' >> /home/$new_username/.config/profanity/profrc echo 'load=prof_omemo_plugin.py;' >> /home/$new_username/.config/profanity/profrc + echo '' >> /home/$new_username/.config/profanity/profrc + echo '[otr]' >> /home/$new_username/.config/profanity/profrc + echo 'policy=opportunistic' >> /home/$new_username/.config/profanity/profrc chown -R $new_username:$new_username /home/$new_username/.local chown -R $new_username:$new_username /home/$new_username/.config @@ -989,7 +992,7 @@ function install_xmpp_client { fi # install the omemo plugin - apt-get -yq install python-pip python-setuptools clang libffi-dev libssl-dev + apt-get -yq install python-pip python-setuptools clang libffi-dev libssl-dev python-dev git_clone $PROFANITY_OMEMO_PLUGIN_REPO $INSTALL_DIR/profanity-omemo-plugin cd $INSTALL_DIR/profanity-omemo-plugin git checkout $PROFANITY_OMEMO_PLUGIN_COMMIT -b $PROFANITY_OMEMO_PLUGIN_COMMIT @@ -1068,6 +1071,9 @@ function install_xmpp_client { echo '' >> /home/$MY_USERNAME/.config/profanity/profrc echo '[plugins]' >> /home/$MY_USERNAME/.config/profanity/profrc echo 'load=prof_omemo_plugin.py;' >> /home/$MY_USERNAME/.config/profanity/profrc + echo '' >> /home/$MY_USERNAME/.config/profanity/profrc + echo '[otr]' >> /home/$MY_USERNAME/.config/profanity/profrc + echo 'policy=opportunistic' >> /home/$MY_USERNAME/.config/profanity/profrc chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.local chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config