Permalink
Browse files

Merge pull request #3 from ericanderson/fix-2

Fixes issue with servers ignoring JOIN cmds that are sent early.
  • Loading branch information...
2 parents 7d8c784 + 9de9283 commit b4fe07111583f749aef8ab5809984b128e40e61f @pda committed Apr 4, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/irc_machine/core.rb
@@ -5,7 +5,9 @@ def connected
session.user options.user, options.realname
session.nick options.nick
session.state.nick = options.nick
- options.channels.each { |c| session.join *c.split } if options.channels
+ EM::add_timer(5) do
+ options.channels.each { |c| session.join *c.split } if options.channels
+ end
end
def terminate

0 comments on commit b4fe071

Please sign in to comment.