From: Darren Date: Sun, 16 Mar 2014 22:35:18 +0000 (+0000) Subject: var name formatting; removing console.logs X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c61b3f74c259dc6ea9ad9a3317fcbef611a7e3d9;p=KiwiIRC.git var name formatting; removing console.logs --- diff --git a/server/irc/connection.js b/server/irc/connection.js index d6d6f3b..a290353 100644 --- a/server/irc/connection.js +++ b/server/irc/connection.js @@ -742,7 +742,7 @@ function parseIrcLine(buffer_line) { tags = [], tag, line = '', - msgObj; + msg_obj; // Decode server encoding line = iconv.decode(buffer_line, this.encoding); @@ -769,9 +769,7 @@ function parseIrcLine(buffer_line) { } } - //console.log(msg); - - msgObj = { + msg_obj = { tags: tags, prefix: msg[2], nick: msg[3], @@ -782,9 +780,8 @@ function parseIrcLine(buffer_line) { }; if (msg[8]) { - msgObj.params.push(msg[8].trim()); + msg_obj.params.push(msg[8].trim()); } - console.log(msgObj); - this.irc_commands.dispatch(msgObj.command.toUpperCase(), msgObj); + this.irc_commands.dispatch(msg_obj.command.toUpperCase(), msg_obj); }