From 4680f1a181ac17f744555d3d6b54f7e8d609c986 Mon Sep 17 00:00:00 2001 From: Major- Date: Thu, 27 Aug 2015 22:03:28 +0100 Subject: [PATCH] Use correct range operator to fix #72. --- data/plugins/bootstrap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/plugins/bootstrap.rb b/data/plugins/bootstrap.rb index b0318876..75c90ef9 100644 --- a/data/plugins/bootstrap.rb +++ b/data/plugins/bootstrap.rb @@ -178,7 +178,7 @@ def on_message(args, proc) message = args[0].to_s option = 0 - (0..numbers.length).each do |index| + (0...numbers.length).each do |index| number = numbers[index] if message.start_with?(number)