Skip to content

Commit

Permalink
Style tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryChaplin committed Nov 22, 2017
1 parent 2944167 commit 01e035f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/channel.js
Expand Up @@ -66,15 +66,15 @@ function IrcChannel(irc_client, channel_name, key) {
// There can be multiple modes set at once, loop through
_.each(event.modes, function(modes) {
// Is it a channel mode ?
if(modes.param === null) {
if (modes.param === null) {
// TODO : manage channel mode changes
} else { // It's a user mode
// Find the user affected
_.find(that.users, function(user) {
if(user.nick.toLowerCase() === modes.param.toLowerCase()) {
if (user.nick.toLowerCase() === modes.param.toLowerCase()) {
_.each(modes, function(mode) {
if(mode.substring(0,1) === '+') {
if(user.modes === undefined) {
if (mode.substring(0,1) === '+') {
if (user.modes === undefined) {
user.modes = [];
}
user.modes.push(mode.substring(1,2));
Expand Down

0 comments on commit 01e035f

Please sign in to comment.