|
@ -42,7 +42,7 @@ function User(socket) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.sendMsg = function (from, message) { |
|
|
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.sendRaw = function(message) { |
|
|
this.connection.write(`${message}\r\n`, "ascii") |
|
|
this.connection.write(`${message}\r\n`, "ascii") |
|
|