Prevent another type of possible loop

This commit is contained in:
c0dev0id 2023-02-05 14:58:25 +01:00
parent fe41bdc363
commit 73223ca737
1 changed files with 5 additions and 0 deletions

View File

@ -210,6 +210,11 @@ do
[ "$NICK" == "$BOTNICK" ] \
&& 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" \
| tr '[:upper:]' '[:lower:]' \
| sed -n 's|.*\(![a-z]*\).*|\1|p')