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 38d0051f1c84373b9a2aa1b77807e520ba981e59..35aba1c861b1614a29d46c60f7dbc22d9f3c95ca 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