Prevent another type of possible loop
This commit is contained in:
parent
fe41bdc363
commit
73223ca737
5
start.sh
5
start.sh
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user