dfsdkjbsdf

This commit is contained in:
Kbz-8
2024-01-25 18:12:12 +01:00
parent 98e4c4e2c3
commit 01559e2797
6 changed files with 101 additions and 16 deletions

View File

@@ -6,7 +6,7 @@
/* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/21 10:34:25 by maldavid #+# #+# */
/* Updated: 2024/01/25 17:59:52 by vvaas ### ########.fr */
/* Updated: 2024/01/25 18:11:58 by maldavid ### ########.fr */
/* */
/******************************************************************************/
@@ -45,13 +45,19 @@ namespace irc
void ModOperator(unstd::SharedPtr<class Client> client, const std::string &clientname, bool mode);
inline bool removeOperator(unstd::SharedPtr<Client> op) { return _operators.erase(op); }
void changeMode(unstd::SharedPtr<class Client> client, const Message& msg);
bool isOp(unstd::SharedPtr<Client> client);
bool isOp(unstd::SharedPtr<Client> client) const;
void handleMessage(const std::string& msg, unstd::SharedPtr<Client> client, bool notice = false) const;
inline bool hasClient(unstd::SharedPtr<Client> client) const { return _clients.find(client) != _clients.end(); }
bool hasClient(std::string client) const;
inline bool isInviteOnly() const { return _invite_only; }
void setTopic(unstd::SharedPtr<Client> client, const std::string& new_topic);
void showModes(void) const;
bool kick(unstd::SharedPtr<Client> op, unstd::SharedPtr<Client> target, const std::string& reason);
~Channel();
private:

View File

@@ -6,7 +6,7 @@
/* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/21 09:12:28 by maldavid #+# #+# */
/* Updated: 2024/01/25 16:39:18 by maldavid ### ########.fr */
/* Updated: 2024/01/25 17:21:25 by maldavid ### ########.fr */
/* */
/******************************************************************************/
@@ -62,6 +62,9 @@ namespace irc
void handlePing(unstd::SharedPtr<class Client> client, const class Message& msg);
void handleMode(unstd::SharedPtr<class Client> client, const class Message& msg);
class Channel* getChannelByName(const std::string& name);
unstd::SharedPtr<class Client> getClientByName(const std::string& name);
bool isUserKnown(const std::string& user) const;
bool isChannelKnown(const std::string& channel) const;