[packages] znc: fix script error in r24218
[packages] znc: fix script error in r24218


git-svn-id: svn://svn.openwrt.org/openwrt/packages@24525 3c298f89-4303-0410-b956-a3cf2f4a3e73

--- a/net/znc/files/znc.init
+++ b/net/znc/files/znc.init
@@ -11,7 +11,7 @@
 }
 
 add_chan() {
-	chan=${2% *}
+	chan=${1% *}
 	pass=${1#* }
 	echo "	<Chan $chan>" >> $ZNC_CONFIG
 	[ "$chan" != "$pass" ] && echo "		Key = $pass" >> $ZNC_CONFIG

comments