This commit is contained in:
Kbz-8
2024-01-29 23:28:00 +01:00
parent 9e72c90b32
commit 9fc30f5ec9
4 changed files with 21 additions and 13 deletions

View File

@@ -6,7 +6,7 @@
/* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/21 10:33:17 by maldavid #+# #+# */
/* Updated: 2024/01/29 21:16:38 by vvaas ### ########.fr */
/* Updated: 2024/01/29 22:57:10 by maldavid ### ########.fr */
/* */
/******************************************************************************/
@@ -15,6 +15,7 @@
#include <irc.hpp>
#include <string>
#include <set>
namespace irc
{
@@ -57,9 +58,13 @@ namespace irc
void sendModular(std::string message, ...);
void sendCodeInChannel(const std::string& code, const class Channel &chan, const std::string& msg);
inline void inviteToChannel(const std::string& channel) { _invites.insert(channel); }
inline bool hasBeenInvitedTo(const std::string& channel) { return _invites.erase(channel); }
~Client();
private:
std::set<std::string> _invites;
std::string _nickname;
std::string _username;
std::string _realname;