fix encoding for define

This commit is contained in:
reality 2013-07-28 21:26:04 +00:00
parent ea9d3ee0ff
commit 036b926b28

View File

@ -4,7 +4,7 @@ var words = function(dbot) {
this.commands = {
'~define': function(event) {
var query = event.params[1];
this.wn.definitions(query, function(err, defs) {
this.wn.definitions(encodeURIComponent(query), function(err, defs) {
if(!err && defs[0]) {
event.reply(query + ': ' + defs[0].text);
} else {