Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make sure ecmabot more appropriately handles factoids. Fixes #4

  • Loading branch information...
commit 74bac9a3fc79ad5da65cf7803e61cc73f152d94a 1 parent ab95aad
@dsamarin dsamarin authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 ecmabot.js
View
4 ecmabot.js
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.