-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
28 lines (25 loc) · 1.17 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nmaliare <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/12 05:09:46 by nmaliare #+# #+# */
/* Updated: 2023/09/20 22:24:55 by yli ### ########.fr */
/* */
/* ************************************************************************** */
#include "./server/Server.hpp"
#include <exception>
Server *ptr;
int main(int ac, char *av[]) {
if (ac < 3) {
std::cout << RED"USAGE: ./irc <port> <pass>"RES << std::endl;
return 0;
}
try {
Server server(av[1], av[2]);
} catch (std::exception const &e) {
std::cout << e.what() << std::endl;
}
}