mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
call stats rename on nick listener
This commit is contained in:
parent
1d0a5cb8a5
commit
5767634f42
@ -57,6 +57,7 @@ var users = function(dbot) {
|
|||||||
var newNick = event.params.substr(1);
|
var newNick = event.params.substr(1);
|
||||||
if(!this.api.isKnownUser(newNick)) {
|
if(!this.api.isKnownUser(newNick)) {
|
||||||
knownUsers.aliases[newNick] = this.api.resolveUser(event.server, event.user);
|
knownUsers.aliases[newNick] = this.api.resolveUser(event.server, event.user);
|
||||||
|
if(_.has(dbot.modules, 'stats')) dbot.api.stats.renameStats(event.server, newNick);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user