From 45d3d63d4b67b6890200a1472d2c7b6bbb0878b3 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 3 Aug 2004 07:26:03 +0000 Subject: [PATCH] Uh oh, we're getting repeats. Let's fix this. --- src/conf.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/conf.py b/src/conf.py index a6f52852c..9bb4ee14b 100644 --- a/src/conf.py +++ b/src/conf.py @@ -573,8 +573,12 @@ utils.transactionalFile = transactionalFile class PluginDirectories(registry.CommaSeparatedListOfStrings): def __call__(self): - v = registry.CommaSeparatedListOfStrings.__call__(self) - return v + [_srcDir, _pluginsDir] + v = registry.CommaSeparatedListOfStrings.__call__(self)[:] # Copy! + if _srcDir not in v: + v.append(_srcDir) + if _pluginsDir not in v: + v.append(_pluginsDir) + return v registerGlobalValue(supybot.directories, 'plugins', PluginDirectories(['plugins'], """Determines what directories the bot will