Fixed the source of the nil error, and should be catching the nil error should it show up again.

This commit is contained in:
Monqui 2026-07-08 20:33:34 +00:00
parent f8be57eae2
commit 087fe47897

View file

@ -190,7 +190,7 @@ bot = Cinch::Bot.new do
on :channel, /^!pounce (\S*) (.*)$/ do |m, t, message|
save_msg = {"source" => m.user.nick, "target" => t.downcase, "message" => '', 'time' => ''}
if message.index("|") != nil then
if message.index(" | ") != nil then
msg_parts = message.split(' | ')
save_msg["message"] = msg_parts[1]