From 087fe478971eaefced881d6910f7bfae93607b78 Mon Sep 17 00:00:00 2001 From: Monqui Date: Wed, 8 Jul 2026 20:33:34 +0000 Subject: [PATCH] Fixed the source of the nil error, and should be catching the nil error should it show up again. --- botqui.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/botqui.rb b/botqui.rb index 4b0273f..886327e 100644 --- a/botqui.rb +++ b/botqui.rb @@ -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]