Skip to content

Commit

Permalink
fix check_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
raylu committed Oct 18, 2014
1 parent f406f31 commit e246845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ircd.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def disconnect(self):
del users[self.nick]

def check_timeout(self):
since = datetime.now() - user.last_recv_time
since = datetime.now() - self.last_recv_time
if since >= timedelta(minutes=4):
self.disconnect()
elif since >= timedelta(minutes=3):
Expand Down Expand Up @@ -290,7 +290,7 @@ def quit(self, msg):
self.disconnect()

def pong(self, msg):
#amusingly we don't actually need to do anything here
# amusingly, we don't actually need to do anything here
pass

handlers = {
Expand Down

0 comments on commit e246845

Please sign in to comment.