Permalink
Browse files

No more random time spamming

  • Loading branch information...
1 parent 108aaef commit 9bcdd04cb9cd6361887b658ba6437c39b6565347 @Smotko Smotko committed Jul 21, 2012
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/handler.py
View
@@ -56,8 +56,6 @@ def found_terminator(self):
def run(self, host, port):
def handler(frame, neki):
self.write('PRIVMSG ' + self.channel + ' :' + response.MSGS[random.randint(0, len(response.MSGS) - 1)])
- signal.signal(signal.SIGALRM, handler)
- signal.alarm(int(random.random() * 6 * 60 * 60)) # say something about every 6 hours
self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
self.connect((host, port))

0 comments on commit 9bcdd04

Please sign in to comment.