wikifirc

filter irc.wikimedia.org on specific pages and users
git clone https://a3nm.net/git/wikifirc/
Log | Files | Refs | README

commit 516f93285941df27568d747e9490af6bd64410b4
parent d9d93f990f3da5e210c1a58c88eaac1d830f3664
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Tue, 15 Nov 2016 11:26:38 +0100

do not fail if fout not specified

Diffstat:
wikifirc | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/wikifirc b/wikifirc @@ -69,8 +69,9 @@ def register(pages, page, fout): if page in pages: return pages.add(page) - print(page, file=fout) - fout.flush() + if fout: + print(page, file=fout) + fout.flush() if __name__ == "__main__":