diff --git a/config.py b/config.py index 783b353..c3a2dac 100644 --- a/config.py +++ b/config.py @@ -58,7 +58,7 @@ class Config(ComboParser): self.add_item(section, 'message', str, None, 'message', False) self.add_item(section, 'threads', int, 1, '# of threads', False) self.add_item(section, 'once', int, 0, 'quit as soon as possible (default: 0)', False) - self.add_item(section, 'max_time', int, 90, 'maximum time to run (default: 90 secs)', False) + self.add_item(section, 'duration', int, 90, 'maximum time to run (default: 90 secs)', False) self.add_item(section, 'use_ssl', int, 2, 'Use ssl? (0: false, 1: true, 2: random) - default: 2', False) self.add_item(section, 'cycle', int, 0, 'cycle flood', False) self.add_item(section, 'change_nick', int, 0, 'Change nick between messages (useful when flooding privates) - default: 0', False) diff --git a/proxyflood.py b/proxyflood.py index e87775f..59cba59 100644 --- a/proxyflood.py +++ b/proxyflood.py @@ -58,8 +58,8 @@ def flood(sock): ticks = time.time() sent_ping = False while True: - if config.flood.max_time > 0: - if (time.time() - ticks) > config.flood.max_time: break + if config.flood.duration > 0: + if (time.time() - ticks) > config.flood.duration: break recv = sock.recvline() print(recv.strip()) if not len(recv): break