Skip to content

Commit

Permalink
Fix: erming#662 - command/join order
Browse files Browse the repository at this point in the history
  • Loading branch information
bews committed May 12, 2016
1 parent c7928c2 commit ac967b3
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,17 +221,13 @@ Client.prototype.connect = function(args) {
});
}
setTimeout(function() {
irc.write("PING " + network.host);
var join = (args.join || "");
if (join) {
join = join.replace(/\,/g, " ").split(/\s+/g);
irc.join(join);
}
}, delay);
});

irc.once("pong", function() {
var join = (args.join || "");
if (join) {
join = join.replace(/\,/g, " ").split(/\s+/g);
irc.join(join);
}
});
};

reconnect(args);
Expand Down

0 comments on commit ac967b3

Please sign in to comment.