From 5767634f422f1fe79ceda1a96b018296cdc60a8d Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 23 Jan 2013 23:05:09 +0000 Subject: [PATCH] call stats rename on nick listener --- modules/users/users.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/users/users.js b/modules/users/users.js index c480dd0..d4ad44a 100644 --- a/modules/users/users.js +++ b/modules/users/users.js @@ -57,6 +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); } } }.bind(this);