Permalink
Browse files

Merge pull request #161 from noraesae/master

Fix the error on nick change
  • Loading branch information...
thedjpetersen committed Sep 25, 2012
2 parents e7a01e2 + ab6caa4 commit 00afc4d72d4bf2c51ab9368af6d9c9461cc199e9
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/socket.js
View
@@ -136,7 +136,7 @@ module.exports = function(socket, connections) {
socket.on('nick', function(data){
connection.client.send('NICK', data.nick);
connection.client.nick = data.nick;
- connection.client.opt.nick = client.nick;
+ connection.client.opt.nick = data.nick;
});
socket.on('command', function(text) {

0 comments on commit 00afc4d

Please sign in to comment.