From 4893b2dd74d37df9dbb0a2ddb1e2d5253c22fc5f Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 7 Mar 2012 16:54:03 +0000 Subject: [PATCH] resetadmin command --- modules/admin.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/admin.js b/modules/admin.js index a0db0c4..d1dfc26 100644 --- a/modules/admin.js +++ b/modules/admin.js @@ -98,6 +98,14 @@ var adminCommands = function(dbot) { } }, + 'onLoad': function() { + return { + '~resetadmin': function(data, params) { + dbot.admin = dbot.config.admin; + } + } + }, + 'on': 'PRIVMSG' }; };