Fixed the source of the nil error, and should be catching the nil error should it show up again.
This commit is contained in:
parent
f8be57eae2
commit
087fe47897
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue