mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-06 08:40:03 +00:00
Merge pull request #2 from apollo-rsps/master
Use correct range operator to fix #72.
This commit is contained in:
@@ -178,7 +178,7 @@ def on_message(args, proc)
|
|||||||
message = args[0].to_s
|
message = args[0].to_s
|
||||||
option = 0
|
option = 0
|
||||||
|
|
||||||
(0..numbers.length).each do |index|
|
(0...numbers.length).each do |index|
|
||||||
number = numbers[index]
|
number = numbers[index]
|
||||||
|
|
||||||
if message.start_with?(number)
|
if message.start_with?(number)
|
||||||
|
|||||||
Reference in New Issue
Block a user