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:
parent
4376989df4
commit
37f5583d31
@ -1,5 +1,6 @@
|
||||
{
|
||||
"ignorable": false,
|
||||
"dependencies": [ "command", "event" ],
|
||||
"dbKeys": [ "knownUsers" ],
|
||||
"help": "https://github.com/reality/depressionbot/blob/master/modules/users/README.md"
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user