diff --git a/doc/Manual.txt b/doc/Manual.txt index 080b0cb..843cdd2 100644 --- a/doc/Manual.txt +++ b/doc/Manual.txt @@ -491,6 +491,7 @@ 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. This *can* be configured through supybot. To do this, set ``supybot.plugins.MeetBot.writer_map`` to a space-separated list of diff --git a/ircmeeting/meeting.py b/ircmeeting/meeting.py index a5b3fdd..c555fe0 100644 --- a/ircmeeting/meeting.py +++ b/ircmeeting/meeting.py @@ -216,8 +216,12 @@ class Config(object): if isinstance(text, (str, unicode)): # Have a way to override saving, so no disk files are written. if getattr(self, "dontSave", False): - continue - self.writeToFile(text, rawname+extension) + pass + # ".none" or a single "." disable writing. + elif extension.lower() in (".none", "."): + pass + else: + self.writeToFile(text, filename) if hasattr(self, 'save_hook'): self.save_hook(realtime_update=realtime_update) return results