mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +01:00
Fixed up wizard to match the new names of the src/ plugins.
This commit is contained in:
parent
79d455dd95
commit
7593ac1b8a
@ -48,15 +48,15 @@ def getPlugins():
|
|||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
if filename.endswith('.py') and filename[0].isupper():
|
if filename.endswith('.py') and filename[0].isupper():
|
||||||
plugins.add(os.path.splitext(filename)[0])
|
plugins.add(os.path.splitext(filename)[0])
|
||||||
plugins.discard('OwnerCommands')
|
plugins.discard('Owner')
|
||||||
plugins = list(plugins)
|
plugins = list(plugins)
|
||||||
plugins.sort()
|
plugins.sort()
|
||||||
return plugins
|
return plugins
|
||||||
|
|
||||||
def loadPlugin(name):
|
def loadPlugin(name):
|
||||||
import OwnerCommands
|
import Owner
|
||||||
try:
|
try:
|
||||||
module = OwnerCommands.loadPluginModule(name)
|
module = Owner.loadPluginModule(name)
|
||||||
if hasattr(module, 'Class'):
|
if hasattr(module, 'Class'):
|
||||||
return module
|
return module
|
||||||
else:
|
else:
|
||||||
@ -340,7 +340,7 @@ def main():
|
|||||||
# Plugins
|
# Plugins
|
||||||
###
|
###
|
||||||
plugins = getPlugins()
|
plugins = getPlugins()
|
||||||
for s in ('AdminCommands','UserCommands','ChannelCommands','MiscCommands'):
|
for s in ('Admin','User','Channel','Misc'):
|
||||||
s = 'load %s' % s
|
s = 'load %s' % s
|
||||||
if s not in onStart:
|
if s not in onStart:
|
||||||
onStart.append(s)
|
onStart.append(s)
|
||||||
@ -513,7 +513,7 @@ def main():
|
|||||||
rather busy channels this might be considered spam, especially if the
|
rather busy channels this might be considered spam, especially if the
|
||||||
command returns several lines in its result. In this case you may want
|
command returns several lines in its result. In this case you may want
|
||||||
to notice the user instead.""")
|
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':
|
'when a command is executed in a channel?') == 'y':
|
||||||
configVariables['replyWithPrivateNotice'] = True
|
configVariables['replyWithPrivateNotice'] = True
|
||||||
|
|
||||||
@ -523,7 +523,7 @@ def main():
|
|||||||
of the possible security hazards in allowing such a thing, but we're
|
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
|
pretty sure our capability system is sound enough to do such a thing
|
||||||
with some kind of security. Nevertheless, by default we have these
|
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
|
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
|
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
|
True. Unless you intend to hack on supybot a lot, we suggest against
|
||||||
|
Loading…
x
Reference in New Issue
Block a user