Browse Source
Rework user.sendMsg() to use user.sendRaw()
refactor/userMessage
Sheogorath
5 years ago
No known key found for this signature in database
GPG Key ID: 1F05CC3635CDDFFD
1 changed files with
1 additions and
1 deletions
-
src/user.js
|
|
@ -42,7 +42,7 @@ function User(socket) { |
|
|
|
|
|
|
|
|
|
|
|
this.sendMsg = function (from, message) { |
|
|
|
this.connection.write(`:${from.nickname} PRIVMSG ${this.nickname} :${message}\r\n`, "ascii") |
|
|
|
this.sendRaw(`:${from.nickname} PRIVMSG ${this.nickname} :${message}`, "ascii") |
|
|
|
} |
|
|
|
this.sendRaw = function(message) { |
|
|
|
this.connection.write(`${message}\r\n`, "ascii") |
|
|
|