hon hon hon baguette
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/21 11:35:21 by maldavid #+# #+# */
|
||||
/* Updated: 2024/01/22 11:51:25 by maldavid ### ########.fr */
|
||||
/* Updated: 2024/01/25 13:09:57 by maldavid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -27,14 +27,18 @@ namespace irc
|
||||
inline unstd::SharedPtr<class Client> getClient() const { return _client; }
|
||||
inline const std::string& getRawMsg() const { return _raw_msg; }
|
||||
inline const std::string& getCmd() const { return _command; }
|
||||
inline const std::vector<std::string>& getArgs() const { return _args; }
|
||||
inline const std::string& getReason() const { return _reason; }
|
||||
inline const std::vector<std::string>& getTokens() const { return _tokens; }
|
||||
|
||||
~Message();
|
||||
|
||||
private:
|
||||
std::vector<std::string> _tokens;
|
||||
std::vector<std::string> _args;
|
||||
const std::string _raw_msg;
|
||||
std::string _command;
|
||||
std::string _reason;
|
||||
unstd::SharedPtr<class Client> _client;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/21 09:12:28 by maldavid #+# #+# */
|
||||
/* Updated: 2024/01/24 19:57:00 by maldavid ### ########.fr */
|
||||
/* Updated: 2024/01/25 16:39:18 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);
|
||||
|
||||
bool isUserKnown(const std::string& user) const;
|
||||
bool isChannelKnown(const std::string& channel) const;
|
||||
|
||||
private:
|
||||
std::vector<class Channel> _channels;
|
||||
std::vector<unstd::SharedPtr<class Client> > _client;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/20 19:13:26 by maldavid #+# #+# */
|
||||
/* Updated: 2024/01/20 19:14:55 by maldavid ### ########.fr */
|
||||
/* Updated: 2024/01/25 15:20:00 by maldavid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
#define __UNSTD_STRING__
|
||||
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace unstd
|
||||
{
|
||||
@@ -24,6 +26,8 @@ namespace unstd
|
||||
ss << n;
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
std::vector<std::string> split(const std::string& s, char delim);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user