Permalink
Browse files

Make sure ecmabot more appropriately handles factoids. Fixes #4

  • Loading branch information...
1 parent ab95aad commit 74bac9a3fc79ad5da65cf7803e61cc73f152d94a @dsamarin dsamarin committed May 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 ecmabot.js
View
@@ -168,7 +168,7 @@ JSBot.prototype.help = function(context, text) {
JSBot.prototype.mdn = function(context, text, command) {
if (!text) {
- return Shared.find (context, command);
+ return Shared.find.call (this, context, command);
}
Shared.google (context, "site:developer.mozilla.org "+text);
@@ -178,7 +178,7 @@ JSBot.prototype.mdn = function(context, text, command) {
JSBot.prototype.command_not_found = function(context, text) {
if (context.priv) {
- return this.find(context, text);
+ return Shared.find.call (this, context, text);
}
try {

0 comments on commit 74bac9a

Please sign in to comment.