Skip to content

Commit

Permalink
Oops, sending the name instead of the person object (thx @eBoy)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 23, 2012
1 parent f713fb1 commit 3567b42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared.js
Expand Up @@ -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;

Expand All @@ -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);
}
Expand Down

0 comments on commit 3567b42

Please sign in to comment.