|
@@ -589,7 +589,7 @@ function irc_via_onion {
|
589
|
589
|
255) return;;
|
590
|
590
|
esac
|
591
|
591
|
if [[ $irc_onion == 'no' ]]; then
|
592
|
|
- if grep -q ";Ports = 6667"; then
|
|
592
|
+ if grep -q ";Ports = 6667" /etc/ngircd/ngircd.conf; then
|
593
|
593
|
sed -i "s/;Ports =.*/;Ports = $IRC_PORT, $IRC_ONION_PORT/1" /etc/ngircd/ngircd.conf
|
594
|
594
|
sed -i "s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
|
595
|
595
|
else
|
|
@@ -601,7 +601,7 @@ function irc_via_onion {
|
601
|
601
|
--msgbox $"The IRC server can now be accessed via SSL at your main domain name" 8 50
|
602
|
602
|
else
|
603
|
603
|
sed -i "s/;Ports =.*/Ports = $IRC_PORT, $IRC_ONION_PORT/1" /etc/ngircd/ngircd.conf
|
604
|
|
- if grep -q ";Ports = 6667"; then
|
|
604
|
+ if grep -q ";Ports = 6667" /etc/ngircd/ngircd.conf; then
|
605
|
605
|
sed -i "s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
|
606
|
606
|
else
|
607
|
607
|
sed -i "s/Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
|