Skip to content

Commit

Permalink
Module: google
Browse files Browse the repository at this point in the history
Build a properly encoded URL
  • Loading branch information
subpop committed Oct 10, 2011
1 parent 61dfdbe commit f9b9db3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/google.js
Expand Up @@ -3,7 +3,7 @@ var misaoUtil = require('../util.js');
module.id = 'google';

exports.execute = function(msg, callback) {
callback("http://google.com/search?q=" + misaoUtil.stripText(msg));
callback(encodeURI("http://google.com/search?q=" + misaoUtil.stripText(msg)));
};

exports.help = "Constructs a clickable Google search query URL. Usage: google search terms."
exports.help = "Constructs a clickable Google search query URL. Usage: google <search terms>."

0 comments on commit f9b9db3

Please sign in to comment.