forked from GitHub/dbot
fix encoding for define
This commit is contained in:
parent
ea9d3ee0ff
commit
036b926b28
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user