fix znc search for exists user

This commit is contained in:
creme 2020-01-16 22:39:13 +01:00
parent 8657f2bd6a
commit cfcaafe0b4
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ if [ -z "$1" ]; then
echo -e "Usage: $(basename "$0") [username]" ; exit 1
fi
if awk '/<User/ {print $2}' "$CONF" | grep -iq "$1"; then
if grep -Fxq "<User $2>" "$CONF"; then
echo -e "znc user \"$1\" already exists" ; exit 1
fi