From 78e0e6008380460583e72cfbb35b2c0db1012c08 Mon Sep 17 00:00:00 2001 From: Sam Nicholls Date: Fri, 25 Jan 2013 15:13:12 +0000 Subject: [PATCH] Hook ~setaliasparent and ~mergeusers [Fix #218] --- modules/profile/profile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/profile/profile.js b/modules/profile/profile.js index c1dc2cb..5d3b146 100644 --- a/modules/profile/profile.js +++ b/modules/profile/profile.js @@ -33,6 +33,10 @@ var profile = function(dbot) { }); }); dbot.save(); + + // Add API Hooks + dbot.api.command.addHook('~setaliasparent', this.api.renameProfile); + dbot.api.command.addHook('~mergeusers', this.api.mergeProfile); }; };