From 4fa547c1c6fba7cb12128c20925fe2dbc9d7379f Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 19 Jan 2004 22:37:22 +0000 Subject: [PATCH] Updated the configure function. --- plugins/Dict.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/plugins/Dict.py b/plugins/Dict.py index 4a24491c1..d68982fc3 100644 --- a/plugins/Dict.py +++ b/plugins/Dict.py @@ -52,17 +52,12 @@ import privmsgs import callbacks -def configure(onStart, afterConnect, advanced): - # 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. +def configure(advanced): from questions import expect, anything, something, yn - onStart.append('load Dict') print 'The default dictd server is dict.org.' - if yn('Would you like to specify a dictd server?') == 'y': + if yn('Would you like to specify a different dictd server?') == 'y': server = something('What server?') - onStart.append('dict config server %s' % server) + conf.supybot.plugins.Dict.server.set(server) replyTimeout = 'Timeout on the dictd server.'