Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/supybotconfig.py
diff options
context:
space:
mode:
authorRichard Darst <rkd@zgib.net>2009-07-06 23:37:07 (GMT)
committer Richard Darst <rkd@zgib.net>2009-07-06 23:37:07 (GMT)
commitd6f81e74e9c894ef519f49f32899ab99fcff95ba (patch)
tree1f2faaaa489bc1dadf6ff55f9e0bd363c741f8d0 /supybotconfig.py
parent7345028a0a903ef434d153ebdb7a039f6f4d247e (diff)
Don't require writers to have a filename extension
- The "extension" isn't just the extension, but more generally the data that tells the writer what to do with the output. This is a kludge for now, hopefully it will be replaced later. darcs-hash:20090706233707-82ea9-4279f3a820f5232b78811d0b759ca1672943dd2e.gz
Diffstat (limited to 'supybotconfig.py')
-rw-r--r--supybotconfig.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/supybotconfig.py b/supybotconfig.py
index deb6585..b30ef44 100644
--- a/supybotconfig.py
+++ b/supybotconfig.py
@@ -27,9 +27,9 @@ class WriterMap(registry.String):
writer, ext = writer.split(':')
if not hasattr(writers, writer):
raise ValueError("Writer name not found: %s"%writer)
- if len(ext) < 2 or ext[0] != '.':
- raise ValueError("Extension must start with '.' and have "
- "at least one more character.")
+ #if len(ext) < 2 or ext[0] != '.':
+ # raise ValueError("Extension must start with '.' and have "
+ # "at least one more character.")
writer_map[ext] = getattr(writers, writer)
self.setValue(writer_map)
def setValue(self, writer_map):