From 3136db5cb4149a9616bab3a56229eeb5db0fd53d Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 11 Aug 2013 17:33:47 +0000 Subject: [PATCH] fix youtube issue --- modules/youtube/youtube.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/youtube/youtube.js b/modules/youtube/youtube.js index 0a943b2..4787a75 100644 --- a/modules/youtube/youtube.js +++ b/modules/youtube/youtube.js @@ -15,8 +15,9 @@ var youtube = function(dbot) { this.commands = { '~youtube': function(event) { + var qs = _.clone(this.params); request.get(this.ApiRoot + '/videos', { - 'qs': _.extend(this.params, { + 'qs': _.extend(qs, { 'q': event.input[1], 'max-results': 1 }),