Skip to content
Browse files

Oops, sending the name instead of the person object (thx @eboy)

  • Loading branch information...
1 parent f713fb1 commit 3567b42bded35b8a6e229e2687ab0233474d3e6e @ljharb ljharb committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 shared.js
View
4 shared.js
@@ -125,7 +125,7 @@ var Shared = module.exports = {
/* Setting the text of a factoid */
if (operation === "=") {
- this.factoids.learn(factoid, value, context.sender);
+ this.factoids.learn(factoid, value, context.sender.name);
context.channel.send_reply(context.sender, "Learned `"+factoid+"`.");
return;
@@ -139,7 +139,7 @@ var Shared = module.exports = {
if (old === result) {
context.channel.send_reply(context.sender, "Nothing changed.");
} else {
- this.factoids. learn(factoid, result, context.sender);
+ this.factoids. learn(factoid, result, context.sender.name);
context.channel.send_reply(context.sender, "Changed `"+factoid+
"` to: "+result);
}

0 comments on commit 3567b42

Please sign in to comment.
Something went wrong with that request. Please try again.