Added MODE and invite only functionality

This commit is contained in:
iherman-
2026-05-23 18:39:18 +02:00
parent 982ca33116
commit dd4de38e5f
9 changed files with 124 additions and 36 deletions

View File

@@ -55,7 +55,7 @@ User::~User()
}
void User::send(const std::string &msg)
void User::send(const std::string &msg) const
{
::send(fd, msg.c_str(), msg.size(), 0);
}

View File

@@ -38,7 +38,7 @@ class User
User& operator=(const User &other);
~User();
void send(const std::string &msg);
void send(const std::string &msg) const;
// Channels
void joinChannel(const std::string &channel);