fixing vavaas issues
This commit is contained in:
@@ -6,14 +6,10 @@
|
||||
/* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/30 01:54:36 by vvaas #+# #+# */
|
||||
/* Updated: 2024/02/06 11:52:46 by vvaas ### ########.fr */
|
||||
/* Updated: 2024/02/07 16:57:53 by maldavid ### ########.fr */
|
||||
/* */
|
||||
/******************************************************************************/
|
||||
|
||||
#define IP "127.0.0.1"
|
||||
#define PORT 6667
|
||||
#define PASSWORD "passwordIRC"
|
||||
|
||||
#include <irc.hpp>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
@@ -22,15 +18,18 @@ class Bot
|
||||
{
|
||||
public:
|
||||
Bot();
|
||||
|
||||
bool init(const std::string &ip, const std::string &port, const std::string &password);
|
||||
void connect_to_server(void);
|
||||
void handle_response(std::string buffer);
|
||||
void send_message(const std::string &content);
|
||||
|
||||
~Bot();
|
||||
|
||||
private :
|
||||
bool _channel_created;
|
||||
bool _logged;
|
||||
std::vector<std::string> _connect_commands;
|
||||
struct sockaddr_in _serv_addr;
|
||||
int _fd;
|
||||
std::vector<std::string> _connect_commands;
|
||||
};
|
||||
bool _channel_created;
|
||||
bool _logged;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user