Compare commits
2 Commits
3614237b8b
...
d1577cdb08
| Author | SHA1 | Date | |
|---|---|---|---|
| d1577cdb08 | |||
| 86e3034a0a |
@@ -16,11 +16,16 @@
|
||||
// Constructors //
|
||||
//////////////////
|
||||
|
||||
User::User()
|
||||
User::User() : fd(-1), nick(""), username(""), realname(""), buffer(""), authenticated(false), registered(false)
|
||||
{
|
||||
// std::cout << "User default constructor called" << std::endl;
|
||||
}
|
||||
|
||||
User::User(int fd) : fd(fd), nick(""), username(""), realname(""), buffer(""), authenticated(false), registered(false)
|
||||
{
|
||||
// std::cout << "User with fd constructor called" << std::endl;
|
||||
}
|
||||
|
||||
User::User(const User &other)
|
||||
{
|
||||
*this = other;
|
||||
|
||||
@@ -29,6 +29,7 @@ class User
|
||||
|
||||
public:
|
||||
User();
|
||||
User(int fd);
|
||||
User(const User &other);
|
||||
User& operator=(const User &other);
|
||||
~User();
|
||||
|
||||
Reference in New Issue
Block a user