Skip to content

Commit

Permalink
fixed join hook
Browse files Browse the repository at this point in the history
  • Loading branch information
micolous committed Jul 16, 2010
1 parent 1f83422 commit eeb0349
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ircasync.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ def bind(self, thunk, command, textPat=None, doc=None):
def rx_msg(self, args, text, origin):
event = IRCEvent(self, args[0], args[1:], text, origin)

# do autojoin
if event.event_type == RPL_WELCOME:
self._welcome_join(event, None)

# respond to ping
if event.event_type == PING:
self.todo([PONG, text])
Expand Down Expand Up @@ -274,7 +278,7 @@ def rx_msg(self, args, text, origin):

def start_channels(self, chans):
self._startChannels = chans
self.bind(self._welcome_join, RPL_WELCOME)
#self.bind(self._welcome_join, RPL_WELCOME)

def _welcome_join(self, event, m):
for chan in self._startChannels:
Expand Down

0 comments on commit eeb0349

Please sign in to comment.