prout
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user