Add a helpful respond location

This commit is contained in:
Nick Chambers 2021-07-10 19:21:10 -05:00 committed by Nick Chambers
parent 34fb5be792
commit 88b4022ee0
1 changed files with 6 additions and 0 deletions

6
rowbot
View File

@ -731,6 +731,12 @@ while net_recv line; do
done
if [[ ${msg[cmd]} = @(PRIVMSG|NOTICE) ]]; then
msg[to]=${msg[from]}
if [[ ${msg_args[0]:0:1} = \# ]]; then
msg[to]=${msg_args[0]}
fi
case ${msg_args[-1]} in
"["*"]")
(( msg[score] += 20 ))