Alter bouncer setup for irssi client

This commit is contained in:
Bob Mottram 2016-10-28 21:30:18 +01:00
parent a4a55d2074
commit b1955c4109
1 changed files with 6 additions and 4 deletions

View File

@ -531,20 +531,22 @@ function install_irc_client {
echo ' address = "irc.oftc.net";' >> /home/${MY_USERNAME}/.irssi/config
echo ' chatnet = "OFTC";' >> /home/${MY_USERNAME}/.irssi/config
echo ' port = "6667";' >> /home/${MY_USERNAME}/.irssi/config
echo ' autoconnect = "yes";' >> /home/${MY_USERNAME}/.irssi/config
echo ' autoconnect = "no";' >> /home/${MY_USERNAME}/.irssi/config
echo ' },' >> /home/${MY_USERNAME}/.irssi/config
echo ' {' >> /home/${MY_USERNAME}/.irssi/config
echo " address = \"127.0.0.1\";" >> /home/${MY_USERNAME}/.irssi/config
if [[ ${ONION_ONLY} == 'no' ]]; then
echo " port = \"${IRC_PORT}\";" >> /home/${MY_USERNAME}/.irssi/config
echo " address = \"${DEFAULT_DOMAIN_NAME}\";" >> /home/${MY_USERNAME}/.irssi/config
echo " port = \"${IRC_BOUNCER_PORT}\";" >> /home/${MY_USERNAME}/.irssi/config
echo ' use_ssl = "yes";' >> /home/${MY_USERNAME}/.irssi/config
echo ' ssl_verify = "yes";' >> /home/${MY_USERNAME}/.irssi/config
else
IRC_ONION_HOSTNAME=$(cat ${COMPLETION_FILE} | grep "irc onion domain" | head -n 1 | awk -F ':' '{print $2}')
echo " address = \"127.0.0.1\";" >> /home/${MY_USERNAME}/.irssi/config
echo " port = \"${IRC_ONION_PORT}\";" >> /home/${MY_USERNAME}/.irssi/config
echo ' use_ssl = "no";' >> /home/${MY_USERNAME}/.irssi/config
echo ' ssl_verify = "no";' >> /home/${MY_USERNAME}/.irssi/config
fi
echo ' chatnet = "Freedombone";' >> /home/${MY_USERNAME}/.irssi/config
echo ' ssl_verify = "no";' >> /home/${MY_USERNAME}/.irssi/config
echo ' autoconnect = "yes";' >> /home/${MY_USERNAME}/.irssi/config
if [ ${IRC_PASSWORD} ]; then
echo " password = \"${IRC_PASSWORD}\";" >> /home/${MY_USERNAME}/.irssi/config