summaryrefslogtreecommitdiff
path: root/mpdlib.rb
diff options
context:
space:
mode:
Diffstat (limited to 'mpdlib.rb')
-rw-r--r--mpdlib.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpdlib.rb b/mpdlib.rb
index 3b5a27f..8cd14a6 100644
--- a/mpdlib.rb
+++ b/mpdlib.rb
@@ -20,7 +20,7 @@ class MPD
def send_request command
# Escape backslashes in command.
- @socket.puts command.sub('\\', '\\\\\\')
+ @socket.puts command.gsub('\\', '\\\\\\')
return get_response
end