Herp derp, correct check for null
authorJack Allnutt <m2ys4u@Gmail.com>
Fri, 18 Nov 2011 12:59:27 +0000 (12:59 +0000)
committerJack Allnutt <m2ys4u@Gmail.com>
Fri, 18 Nov 2011 12:59:27 +0000 (12:59 +0000)
server/app.js

index 74bc4c88c7953463407801ebad656a3ae90fd428..2837edb47b1f8a448bdeb645117c2b0d0ead10ab 100644 (file)
@@ -873,7 +873,7 @@ this.websocketConnection = function (websocket) {
                 callback = eol;
                 eol = '\r\n';
             }
-            eol = ((typeof eol === 'undefined') || (typeof eol === 'null')) ? '\r\n' : eol;
+            eol = ((typeof eol === 'undefined') || (eol === null)) ? '\r\n' : eol;
 
             try {
                 websocket.ircConnection.write(data + eol, 'utf-8', callback);