Browse Source

Merge commit 'c30cd7a5cb352dc1fc8f8f0674b6b5f3ef08a1bb' into HEAD

feature/user
Jenkins 5 years ago
parent
commit
d3b32c46f2
  1. 9
      src/user.js

9
src/user.js

@ -1,12 +1,19 @@
const userlist = require("../src/userlist.js") const userlist = require("../src/userlist.js")
function User(socket) { function User(socket) {
this.nickname = "" this.nickname = ""
this.user = ""
this.realname = ""
this.connection = socket this.connection = socket
this.setNickname = function(nickname) {
this.setNickname = function (nickname) {
this.nickname = nickname this.nickname = nickname
} }
this.setRealName = function (realname) {
this.realname = realname
}
} }
module.exports = User module.exports = User
Loading…
Cancel
Save