From 86d08df03202ac183c1f38b47765f2a4cfcafd72 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Fri, 24 Jul 2009 14:18:47 -0700 Subject: Use nil rather than false for no song. --- libmpd/playbackcontrol.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmpd/playbackcontrol.rb b/libmpd/playbackcontrol.rb index 8c47f0b..a9a3d96 100644 --- a/libmpd/playbackcontrol.rb +++ b/libmpd/playbackcontrol.rb @@ -33,7 +33,7 @@ module MPDPlaybackControl # Begins playing the playlist. If an argument is given, begins at the # specified song position. - def play(songpos=false) + def play(songpos=nil) command = 'play' command << ' %s' % songpos if songpos @@ -42,7 +42,7 @@ module MPDPlaybackControl # Begins playing the playlist. If an argument is given, begins at the # specified song id. - def playid(songid=false) + def playid(songid=nil) command = 'playid' command << ' %s' % songid if songid -- cgit v1.2.3-70-g09d2