[packages] znc: fix script error in r24218
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 12 Dec 2010 22:28:45 +0000 (22:28 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 12 Dec 2010 22:28:45 +0000 (22:28 +0000)
SVN-Revision: 24525

net/znc/files/znc.init

index 38d0051..35aba1c 100644 (file)
@@ -11,7 +11,7 @@ add_param() {
 }
 
 add_chan() {
-       chan=${2% *}
+       chan=${1% *}
        pass=${1#* }
        echo "  <Chan $chan>" >> $ZNC_CONFIG
        [ "$chan" != "$pass" ] && echo "                Key = $pass" >> $ZNC_CONFIG