Fixed a bug with irc parsing.

This commit is contained in:
Storm Dragon
2025-10-25 01:38:14 -04:00
parent d684623974
commit d32baa66ba
2 changed files with 17 additions and 0 deletions

5
bot.sh
View File

@@ -267,6 +267,11 @@ while true; do
;;
# run when a message is seen
*PRIVMSG*)
# Only process if this is a user message (contains ! for hostmask)
if [[ ! "$result" =~ :[^!]+!.*PRIVMSG ]]; then
continue
fi
who="${result%%!*}"
who="${who:1}"
from="${result#*#}"