Skip to content

Commit

Permalink
! On text input
Browse files Browse the repository at this point in the history
  • Loading branch information
floere committed May 29, 2011
1 parent 818d16a commit 85e95d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/james/inputs/terminal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def listen
show_possibilities possibilities
command = get_command
puts "I heard '#{command}'."
command = possibilities[command.to_i-1] if Integer(command)
command = possibilities[command.to_i-1] unless command.to_i.zero?
heard command if possibilities.include? command
end
end
Expand Down

0 comments on commit 85e95d6

Please sign in to comment.