Prevent another type of possible loop

This commit is contained in:
c0dev0id 2023-02-05 14:58:25 +01:00
parent fe41bdc363
commit 73223ca737

View File

@ -210,6 +210,11 @@ do
[ "$NICK" == "$BOTNICK" ] \ [ "$NICK" == "$BOTNICK" ] \
&& continue && continue
# if we still have no nick here, we better stop to prevent excuting
# events from non-users (actions, IRC events etc...)
[ -z "$NICK" ] \
&& continue
COMMAND=$(echo "$line" \ COMMAND=$(echo "$line" \
| tr '[:upper:]' '[:lower:]' \ | tr '[:upper:]' '[:lower:]' \
| sed -n 's|.*\(![a-z]*\).*|\1|p') | sed -n 's|.*\(![a-z]*\).*|\1|p')