Skip to content

Commit

Permalink
Fix kick syntax to correctly remove user that has been kicked
Browse files Browse the repository at this point in the history
  • Loading branch information
thedjpetersen committed Dec 4, 2014
1 parent e794fef commit 30a534d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ var connections = {};
var loggers = {};
var debug;

process.on('uncaughtException', function(err) {
console.log("Connections: %j", connections);
});

// Method for storing messages in database
// will check to see if the user is assigned to
// a channel to log the message
Expand Down
2 changes: 1 addition & 1 deletion src/js/handle_irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ util.handle_irc = function(message, irc, app_ref) {
} else {
var channel = server.get("channels").get(message.args[0]);
server.addMessage(message.args[0], {type: "KICK", nick: message.nick, text: message.args[1], reason: message.args[2]});
channel.get("users").remove(message.nick);
channel.get("users").remove(message.args[1]);
}
break;

Expand Down

1 comment on commit 30a534d

@thedjpetersen
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most likely fixes #345

Please sign in to comment.