[Lunar-commits] r24980 - moonbase/trunk/chat/ratbox-services

Auke Kok sofar at lunar-linux.org
Fri Jun 22 17:40:13 CEST 2007


Author: sofar
Date: 2007-06-22 17:40:13 +0200 (Fri, 22 Jun 2007)
New Revision: 24980

Modified:
   moonbase/trunk/chat/ratbox-services/CONFIGURE
Log:
Fix ratbox-services to use full mquery syntax


Modified: moonbase/trunk/chat/ratbox-services/CONFIGURE
===================================================================
--- moonbase/trunk/chat/ratbox-services/CONFIGURE	2007-06-22 15:09:08 UTC (rev 24979)
+++ moonbase/trunk/chat/ratbox-services/CONFIGURE	2007-06-22 15:40:13 UTC (rev 24980)
@@ -1,46 +1,10 @@
-if ! grep -q CONFIGURED $MODULE_CONFIG; then
-
-  if query "Disable Nickname Service?" n; then
-    OPTS="$OPTS --disable-nickserv"
-  fi
-
-  if query "Disable Channel Service?" n; then
-    OPTS="$OPTS --disable-chanserv"
-  fi
-
-  if query "Disable User Service?" n; then
-    OPTS="$OPTS --disable-userserv"
-  fi
-
-  if query "Disable Oper Service?" n; then
-    OPTS="$OPTS --disable-operserv"
-  fi
-
-  if query "Disable List Service?" n; then
-    OPTS="$OPTS --disable-alis"
-  fi
-
-  if query "Disable Jupe Service?" n; then
-    OPTS="$OPTS --disable-jupeserv"
-  fi
-
-  if query "Disable Operbot Service?" n; then
-    OPTS="$OPTS --disable-operbot"
-  fi
-
-  if query "Disable global messaging service?" n; then
-    OPTS="$OPTS --disable-global"
-  fi
-
-  if query "Disable ban service?" n; then
-    OPTS="$OPTS --disable-banserv"
-  fi
-
-  if query "Disable command watching service?" n; then
-    OPTS="$OPTS --disable-watchserv"
-  fi
-
-  echo 'CONFIGURED="y"' >> $MODULE_CONFIG
-  echo 'OPTS='\"$OPTS\" >> $MODULE_CONFIG
-
-fi
+mquery NO_NICK "Disable Nickname Service?" n "--disable-nickserv" ""
+mquery NO_CHAN "Disable Channel Service?" n "--disable-chanserv" ""
+mquery NO_USER "Disable User Service?" n "--disable-userserv" ""
+mquery NO_OPER "Disable Oper Service?" n "--disable-operserv" ""
+mquery NO_LIST "Disable List Service?" n "--disable-alis" ""
+mquery NO_JUPE "Disable Jupe Service?" n "--disable-jupeserv" ""
+mquery NO_OBOT "Disable Operbot Service?" n "--disable-operbot" ""
+mquery NO_GMSG "Disable global messaging service?" n "--disable-global" ""
+mquery NO_BANS "Disable ban service?" n "--disable-banserv" ""
+mquery NO_EYES "Disable command watching service?" n "--disable-watchserv" ""



More information about the Lunar-commits mailing list