Skip to content

Commit

Permalink
FIX: Bugs introduced by previous refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPalard committed Jun 13, 2011
1 parent 84d4ebb commit 4f75bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ircbot.py
Expand Up @@ -79,7 +79,7 @@ def add_socket(self, sock, on_read=None, on_write=None):
to this Network.
"""
logging.debug("Adding socket %d", sock.fileno())
self.sockets.append(socket)
self.sockets.append(sock)
self.filenos[sock.fileno()] = Socket(sock, on_read, on_write)

def remove_socket(self, sock):
Expand Down Expand Up @@ -183,7 +183,7 @@ def rm_socket(self, sock):
self.network.remove_socket(sock)

def _dispatcher(self, _, event):
if event.emventtype() == 'endofmotd':
if event.eventtype() == 'endofmotd':
logging.info("Joining channel %s", self.chan)
self.connection.join(self.chan, self.key)
try:
Expand Down

0 comments on commit 4f75bc6

Please sign in to comment.