Merge branch 'master' of gitlab.com:stormdragon2976/stormbot

This commit is contained in:
Kyle 2020-10-25 19:09:19 +00:00
commit 0f04da04ea
1 changed files with 1 additions and 1 deletions

2
bot.sh
View File

@ -148,7 +148,7 @@ tail -f "$input" | telnet "$server" "$port" | while read -r result ; do
set -f
# Although this calls modules, it triggers on text other than the bot's nick
# To make sure that modules are only called when they are supposed to be, had to combine string monipulation with regexp.
elif [[ "${result#:*:}" =~ ^[${botCaller}][a-zA-Z_].* ]]; then
elif [[ "${result#:*:}" =~ ^[${botCaller}][a-zA-Z0-9_].* ]]; then
command="${result#*:[[:punct:]]}"
command="${command//# /}"
will="${command#* }"