Skip to content

Commit

Permalink
nearly done without PRIVMSG
Browse files Browse the repository at this point in the history
  • Loading branch information
haelime committed Apr 8, 2024
1 parent 05ab3d3 commit 68d0e29
Show file tree
Hide file tree
Showing 3 changed files with 512 additions and 138 deletions.
3 changes: 2 additions & 1 deletion include/Channel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class Channel

public: // getter, setters

void clearPassword() { mPassword.clear(); };
void setTopic(std::string &topic) { mTopic = topic; };
void setMode(std::string &mode) { mMode = mode; };
void setPassword(std::string &password) { mPassword = password; };
Expand All @@ -53,7 +54,7 @@ class Channel
const int& getUserLimit() const { return mUserLimit; };

std::map<std::string, ClientData *> &getNickToClientDataMap() { return mNickToClientDataMap; };

std::map<std::string, ClientData *> &getNickToOperatorClientsMap() { return mNickToOperatorClientsMap; };

private:
// prevent copy
Expand Down
4 changes: 4 additions & 0 deletions include/defines.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,7 @@ typedef std::string ERROR_NUM_STRING;
#define RPL_ENDOFMOTD "376"

#define ERR_USERONCHANNEL "443"

#define ERR_UNKNOWNMODE "472"
#define RPL_CHANNELMODEIS "324"
#define ERR_KEYSET "467"
Loading

0 comments on commit 68d0e29

Please sign in to comment.