diff options
-rwxr-xr-x | gitnoti.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -31,6 +31,7 @@ except: parser = OptionParser() parser.add_option('-s', '--host') +parser.add_option('-p', '--port', type = 'int', default = 6667) parser.add_option('-n', '--nick', default = 'git') parser.add_option('-d', '--dir') parser.add_option('-c', '--channel') @@ -351,5 +352,5 @@ class BotFactory(protocol.ReconnectingClientFactory): if __name__ == '__main__': f = BotFactory() - reactor.connectTCP(options.host, 6667, f) + reactor.connectTCP(options.host, options.port, f) reactor.run() |