From e7c019e59f50b97ab554beb7b04a6e61905c2b37 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 27 Jan 2004 18:43:20 +0000 Subject: [PATCH] Updated to the new registry dealio. --- scripts/supybot-newplugin | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/supybot-newplugin b/scripts/supybot-newplugin index c442528a6..24207f92d 100755 --- a/scripts/supybot-newplugin +++ b/scripts/supybot-newplugin @@ -52,18 +52,19 @@ Add the module docstring here. This will be used by the setup.py script. import plugins +import conf import utils import privmsgs import callbacks -def configure(onStart, afterConnect, advanced): +def configure(onStart): # This will be called by setup.py to configure this module. onStart and # afterConnect are both lists. Append to onStart the commands you would # like to be run when the bot is started; append to afterConnect the # commands you would like to be run when the bot has finished connecting. from questions import expect, anything, something, yn - onStart.append('load %s') + conf.registerPlugin(%r, True) class %s(%s):