From eb3cc161082f67373487ebb1c9ec6ea4572b6998 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 27 Sep 2012 03:13:24 -0400 Subject: [PATCH] There is now some hope of making the irkbot support multiple VCSes. --- Makefile | 6 +++--- git-irkbot.py => irkbot.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) rename git-irkbot.py => irkbot.py (96%) diff --git a/Makefile b/Makefile index 4068b0b..500df42 100644 --- a/Makefile +++ b/Makefile @@ -22,13 +22,13 @@ clean: rm -f irker irker.1 irker-*.rpm irker-*.tar.gz *~ rm -f SHIPPER.* *.html -PYLINTOPTS = --rcfile=/dev/null --reports=n --include-ids=y --disable="C0103,C0111,C0301,R0201,R0902,R0903,E1101,W0621" +PYLINTOPTS = --rcfile=/dev/null --reports=n --include-ids=y --disable="C0103,C0111,C0301,R0201,R0902,R0903,E1101,W0621,W0702" pylint: @pylint --output-format=parseable $(PYLINTOPTS) irker - @pylint --output-format=parseable $(PYLINTOPTS) git-irkbot.py + @pylint --output-format=parseable $(PYLINTOPTS) irkbot.py -SOURCES = README COPYING NEWS irker git-irkbot.py Makefile irker.xml irker-logo.png +SOURCES = README COPYING NEWS irker irkbot.py Makefile irker.xml irker-logo.png version: @echo $(VERS) diff --git a/git-irkbot.py b/irkbot.py similarity index 96% rename from git-irkbot.py rename to irkbot.py index d7df6c1..278eb31 100755 --- a/git-irkbot.py +++ b/irkbot.py @@ -161,17 +161,17 @@ if __name__ == "__main__": print message else: try: - if tcp: + if extractor.tcp: try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - sock.connect((server, IRKER_PORT)) + sock.connect((extractor.server or default_irker_host, IRKER_PORT)) sock.sendall(message + "\n") finally: sock.close() else: try: sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) - sock.sendto(message + "\n", (server, IRKER_PORT)) + sock.sendto(message + "\n", (extractor.server or default_irker_host, IRKER_PORT)) finally: sock.close() except socket.error, e: -- 2.26.2