diff --git a/bot.sh b/bot.sh index 8a448ea..17bd5de 100755 --- a/bot.sh +++ b/bot.sh @@ -137,7 +137,7 @@ tail -f "$input" | telnet "$server" "$port" | while read -r result ; do ./triggers/link/link.sh "$who" "$from" "$result" set -f # Although this calls modules, it triggers on text other than the bot's nick - elif [[ "$result" =~ ^.*PRIVMSG.*:[${botCaller}].* ]]; then + elif [[ "${result#:*:}" =~ ^[${botCaller}][a-zA-Z_].* ]]; then command="${result#*:[[:punct:]]}" command="${command//# /}" will="${command#* }"