3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

fix spaces

This commit is contained in:
reality 2016-03-03 17:41:17 +00:00
parent 40e20f06b0
commit b9064302ba

View File

@ -54,7 +54,7 @@ var wikipedia = function(dbot) {
request.get('http://wikipedia.org/w/api.php', { request.get('http://wikipedia.org/w/api.php', {
'qs': { 'qs': {
'action': 'opensearch', 'action': 'opensearch',
'search': event.input[1], 'search': event.input[1].replace(/\s/,'_'),
'limit': 1, 'limit': 1,
'namespace': 0, 'namespace': 0,
'format': 'json' 'format': 'json'