From: Jo-Philipp Wich Date: Sun, 12 Dec 2010 22:28:45 +0000 (+0000) Subject: znc: fix script error in r24218 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e82a95be0873895f2b5856ab51064ab22176d26b;p=openwrt%2Fsvn-archive%2Fpackages.git znc: fix script error in r24218 SVN-Revision: 24525 --- diff --git a/net/znc/files/znc.init b/net/znc/files/znc.init index 38d0051f1..35aba1c86 100644 --- a/net/znc/files/znc.init +++ b/net/znc/files/znc.init @@ -11,7 +11,7 @@ add_param() { } add_chan() { - chan=${2% *} + chan=${1% *} pass=${1#* } echo " " >> $ZNC_CONFIG [ "$chan" != "$pass" ] && echo " Key = $pass" >> $ZNC_CONFIG