3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-24 04:49:25 +01:00

event in users for nick rename

This commit is contained in:
reality 2013-01-24 18:55:28 +00:00
parent 4376989df4
commit 37f5583d31
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
{
"ignorable": false,
"dependencies": [ "command", "event" ],
"dbKeys": [ "knownUsers" ],
"help": "https://github.com/reality/depressionbot/blob/master/modules/users/README.md"
}

View File

@ -57,7 +57,7 @@ var users = function(dbot) {
var newNick = event.params.substr(1);
if(!this.api.isKnownUser(newNick)) {
knownUsers.aliases[newNick] = this.api.resolveUser(event.server, event.user);
if(_.has(dbot.modules, 'stats')) dbot.api.stats.renameStats(event.server, newNick);
dbot.api.event.emit('nick_change', [ event.server, newNick ]);
}
}
}.bind(this);