Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Havvy/irc-socket
Browse files Browse the repository at this point in the history
  • Loading branch information
Havvy committed Dec 16, 2013
2 parents 19d7275 + bf1d6f9 commit a33f5fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion irc-socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,12 @@ var Socket = module.exports = function Socket (network, NetSocket) {
socket.impl.on(emitEvent, emitWhenConnected);
}();

socket.impl.once('close', function () {
socket.impl.on('error', function () {
socket.connected = false;
socket.emit('error');
});

socket.impl.on('close', function () {
socket.connected = false;
socket.emit('close');
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "irc-socket",
"version": "1.2.1",
"version": "1.3.1",
"description": "Simple IRC Socket for usage with IRC libraries.",
"main": "irc-socket.js",
"scripts": {
Expand Down

0 comments on commit a33f5fa

Please sign in to comment.