Browse Source

Rework user.sendMsg() to use user.sendRaw()

refactor/userMessage
Sheogorath 5 years ago
parent
commit
a9c6b0d1dc
No known key found for this signature in database GPG Key ID: 1F05CC3635CDDFFD
  1. 2
      src/user.js

2
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")

Loading…
Cancel
Save