]> git.plutz.net Git - httpchat/commitdiff
typo
authorPaul Hänsch <paul@plutz.net>
Thu, 19 Nov 2020 01:57:21 +0000 (02:57 +0100)
committerPaul Hänsch <paul@plutz.net>
Thu, 19 Nov 2020 01:57:21 +0000 (02:57 +0100)
channel.sh

index a59a5a46ddced0c0b7e1daa8559eea04f25f0cd2..6117050ba9f20bb2de720f1d75158f06a7e9ef62 100755 (executable)
@@ -43,7 +43,7 @@ nicklist(){
 
   nicklist='NICKNAMES: '
   while read -r s p nick; do
-    [ -d "/proc/$pid" ] && nicklist="${nicklist}/$nick/" \
+    [ -d "/proc/$p" ] && nicklist="${nicklist}/$nick/" \
     || sed -i -E "/^$s $p /d" "$nickfile"
   done <"$nickfile"
   if ! tail -n20 "$chatfile" |grep -qxF "$nicklist"; then