Browse Source

Warning if no irc server is installed

Bob Mottram 9 years ago
parent
commit
d0709ec735
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/freedombone-controlpanel

+ 6
- 0
src/freedombone-controlpanel View File

@@ -1820,6 +1820,12 @@ function menu_media {
1820 1820
 }
1821 1821
 
1822 1822
 function menu_irc {
1823
+    if [ ! -d /etc/ngircd ]; then
1824
+        dialog --title $"IRC Menu" \
1825
+               --msgbox $"No IRC server is installed" 6 70
1826
+        return
1827
+    fi
1828
+    
1823 1829
     while true
1824 1830
     do
1825 1831
         data=$(tempfile 2>/dev/null)