projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
993b008
)
Check if eol is not a string rather than not undefined or not null in websocket.sendS...
author
Jack Allnutt
<m2ys4u@Gmail.com>
Fri, 18 Nov 2011 13:14:46 +0000
(13:14 +0000)
committer
Jack Allnutt
<m2ys4u@Gmail.com>
Fri, 18 Nov 2011 13:14:46 +0000
(13:14 +0000)
server/app.js
patch
|
blob
|
blame
|
history
diff --git
a/server/app.js
b/server/app.js
index 2837edb47b1f8a448bdeb645117c2b0d0ead10ab..ba5f802ea85987b7007479ea11b4423e095d64a0 100644
(file)
--- a/
server/app.js
+++ b/
server/app.js
@@
-871,9
+871,8
@@
this.websocketConnection = function (websocket) {
websocket.sendServerLine = function (data, eol, callback) {
if ((arguments.length < 3) && (typeof eol === 'function')) {
callback = eol;
- eol = '\r\n';
}
- eol = (
(typeof eol === 'undefined') || (eol === null)
) ? '\r\n' : eol;
+ eol = (
typeof eol !== 'string'
) ? '\r\n' : eol;
try {
websocket.ircConnection.write(data + eol, 'utf-8', callback);