ircmeeting/meeting.py - update to ".none" extension
Ignore-this: eed5f98634527f0cd67d4dd654df3b35 - Because of the way python dictionaries work, it is only possible to have unique extensions. To get around this for not writing files, any extension that begins in ".none" will not have files written. - Thus, use ".none1", ".none2", etc, for multiple writers that should not be written. darcs-hash:20101210081246-82ea9-6a4c8f61270f89a1414584b0af01669d7cb51f5e.gz
This commit is contained in:
parent
64f57ddf74
commit
0790138e94
|
@ -491,7 +491,10 @@ along with extensions to use. For example, in
|
|||
'.mw':writers.MediaWiki,
|
||||
}
|
||||
|
||||
If an extension is ``.none`` the output will *not* be written to a file.
|
||||
If an extension begins in ``.none`` the output will *not* be written
|
||||
to a file. Note that you can't have the same extension multiple times
|
||||
due to the way python dictionaries work: use ``.none1``, ``.none2``,
|
||||
etc.
|
||||
|
||||
This *can* be configured through supybot. To do this, set
|
||||
``supybot.plugins.MeetBot.writer_map`` to a space-separated list of
|
||||
|
|
|
@ -218,7 +218,7 @@ class Config(object):
|
|||
if getattr(self, "dontSave", False):
|
||||
pass
|
||||
# ".none" or a single "." disable writing.
|
||||
elif extension.lower() in (".none", "."):
|
||||
elif extension.lower()[:5] in (".none", "."):
|
||||
pass
|
||||
else:
|
||||
self.writeToFile(text, filename)
|
||||
|
|
Loading…
Reference in New Issue