From 73223ca73770bc47217e500dec5d2797ede64056 Mon Sep 17 00:00:00 2001 From: c0dev0id Date: Sun, 5 Feb 2023 14:58:25 +0100 Subject: [PATCH] Prevent another type of possible loop --- start.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/start.sh b/start.sh index 9364019..dc74072 100755 --- a/start.sh +++ b/start.sh @@ -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')