Skip to content

Commit

Permalink
files are sorted in sounds directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bfontaine committed Feb 5, 2014
1 parent 99c15fe commit 3a4eef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pouf.rb
Expand Up @@ -35,7 +35,7 @@ def play_sound filename, cmd=nil

def alias2filename name
fns = Dir["#{sounds_dir}/#{name}.*"]
fns.first if fns
fns.sort.first if fns
end

def filename2alias fname
Expand Down

0 comments on commit 3a4eef8

Please sign in to comment.