Fixed more translation problems.

This commit is contained in:
Storm Dragon
2020-08-19 20:42:23 -04:00
parent 1041c973a4
commit 57c135c3c5
2 changed files with 29 additions and 28 deletions

1
bot.sh
View File

@ -137,6 +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
# 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
command="${result#*:[[:punct:]]}"
command="${command//# /}"