From b9064302ba88442454529a1d0d3a6f2336703b35 Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 3 Mar 2016 17:41:17 +0000 Subject: [PATCH] fix spaces --- modules/wikipedia/wikipedia.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wikipedia/wikipedia.js b/modules/wikipedia/wikipedia.js index e65518d..c7ffdf0 100644 --- a/modules/wikipedia/wikipedia.js +++ b/modules/wikipedia/wikipedia.js @@ -54,7 +54,7 @@ var wikipedia = function(dbot) { request.get('http://wikipedia.org/w/api.php', { 'qs': { 'action': 'opensearch', - 'search': event.input[1], + 'search': event.input[1].replace(/\s/,'_'), 'limit': 1, 'namespace': 0, 'format': 'json'