Skip to content
Snippets Groups Projects
Commit 6f5bb61a authored by Bob Mottram's avatar Bob Mottram
Browse files

Set users up with the current IRC password

parent 0ca7bc16
No related branches found
No related tags found
No related merge requests found
......@@ -7262,6 +7262,9 @@ function install_irc_client {
echo ' use_ssl = "yes";' >> /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
fi
echo ' }' >> /home/$MY_USERNAME/.irssi/config
echo ');' >> /home/$MY_USERNAME/.irssi/config
echo '' >> /home/$MY_USERNAME/.irssi/config
......@@ -10836,9 +10839,9 @@ install_tox_node
install_tox_client
tox_avahi
configure_firewall_for_xmpp
install_irc_client
install_irc_server
configure_firewall_for_irc
install_irc_client
install_voip
install_sip
update_sipwitch_daemon
......
......@@ -306,7 +306,11 @@ if grep -q "install_irc_client" $COMPLETION_FILE; then
if grep -q "IRC_PORT" $CONFIGURATION_FILE; then
IRC_PORT=$(grep "IRC_PORT" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
fi
IRC_PASSWORD=$(cat /etc/ngircd/ngircd.conf | grep "Password =" | head -n 1 | awk -F '=' '{print $2}')
if [ ${#IRC_PASSWORD} -lt 2 ]; then
IRC_PASSWORD=
fi
if [ ! -d /home/$MY_USERNAME/.irssi ]; then
mkdir /home/$MY_USERNAME/.irssi
fi
......@@ -331,6 +335,7 @@ if grep -q "install_irc_client" $COMPLETION_FILE; then
echo ' use_ssl = "yes";' >> /home/$MY_USERNAME/.irssi/config
echo ' ssl_verify = "no";' >> /home/$MY_USERNAME/.irssi/config
echo ' autoconnect = "yes";' >> /home/$MY_USERNAME/.irssi/config
echo ' }' >> /home/$MY_USERNAME/.irssi/config
echo ');' >> /home/$MY_USERNAME/.irssi/config
echo '' >> /home/$MY_USERNAME/.irssi/config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment