From 7593ac1b8adcb01f6d5f86cc4eb91931d14bb51e Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 21 Oct 2003 06:40:37 +0000 Subject: [PATCH] Fixed up wizard to match the new names of the src/ plugins. --- scripts/supybot-wizard | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/supybot-wizard b/scripts/supybot-wizard index a05519f9e..027feb798 100755 --- a/scripts/supybot-wizard +++ b/scripts/supybot-wizard @@ -48,15 +48,15 @@ def getPlugins(): for filename in filenames: if filename.endswith('.py') and filename[0].isupper(): plugins.add(os.path.splitext(filename)[0]) - plugins.discard('OwnerCommands') + plugins.discard('Owner') plugins = list(plugins) plugins.sort() return plugins def loadPlugin(name): - import OwnerCommands + import Owner try: - module = OwnerCommands.loadPluginModule(name) + module = Owner.loadPluginModule(name) if hasattr(module, 'Class'): return module else: @@ -340,7 +340,7 @@ def main(): # Plugins ### plugins = getPlugins() - for s in ('AdminCommands','UserCommands','ChannelCommands','MiscCommands'): + for s in ('Admin','User','Channel','Misc'): s = 'load %s' % s if s not in onStart: onStart.append(s) @@ -513,7 +513,7 @@ def main(): rather busy channels this might be considered spam, especially if the command returns several lines in its result. In this case you may want to notice the user instead.""") - if yn('Would you like the bot to notice replies to users in private' + if yn('Would you like the bot to notice replies to users in private ' 'when a command is executed in a channel?') == 'y': configVariables['replyWithPrivateNotice'] = True @@ -523,7 +523,7 @@ def main(): of the possible security hazards in allowing such a thing, but we're pretty sure our capability system is sound enough to do such a thing with some kind of security. Nevertheless, by default we have these - commands (eval and exec, both in the OwnerCommands plugin which is + commands (eval and exec, both in the Owner plugin which is loaded by default) disabled by a config variable allowEval. If you'd like to use either eval or exec, you'll have to make this variable True. Unless you intend to hack on supybot a lot, we suggest against