Browse Source

added realname variable + setter method

feature/extend_user
Wayne 6 years ago
parent
commit
c30cd7a5cb
  1. 17
      src/user.js

17
src/user.js

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