From 4eceef050293a0d51d624228e3f0da6b6e5e8b56 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Sat, 13 Feb 2016 18:35:57 +0000
Subject: [PATCH] port changing

---
 src/freedombone-controlpanel | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel
index 5cbdcc214..ef9348859 100755
--- a/src/freedombone-controlpanel
+++ b/src/freedombone-controlpanel
@@ -589,7 +589,7 @@ function irc_via_onion {
         255) return;;
     esac
     if [[ $irc_onion == 'no' ]]; then
-        if grep -q ";Ports = 6667"; then
+        if grep -q ";Ports = 6667" /etc/ngircd/ngircd.conf; then
             sed -i "s/;Ports =.*/;Ports = $IRC_PORT, $IRC_ONION_PORT/1" /etc/ngircd/ngircd.conf
             sed -i "s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
         else
@@ -601,7 +601,7 @@ function irc_via_onion {
                --msgbox $"The IRC server can now be accessed via SSL at your main domain name" 8 50
     else
         sed -i "s/;Ports =.*/Ports = $IRC_PORT, $IRC_ONION_PORT/1" /etc/ngircd/ngircd.conf
-        if grep -q ";Ports = 6667"; then
+        if grep -q ";Ports = 6667" /etc/ngircd/ngircd.conf; then
             sed -i "s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
         else
             sed -i "s/Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf
-- 
GitLab