forked from OthelloPlusPlus/ft_irc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommand.hpp
More file actions
65 lines (56 loc) · 1.68 KB
/
Command.hpp
File metadata and controls
65 lines (56 loc) · 1.68 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/* ************************************************************************** */
/* */
/* :::::::: */
/* Command.hpp :+: :+: */
/* +:+ */
/* By: emlicame <emlicame@student.42.fr> +#+ */
/* +#+ */
/* Created: 2023/08/18 14:45:40 by emlicame #+# #+# */
/* Updated: 2023/10/24 19:50:43 by emlicame ######## odam.nl */
/* */
/* ************************************************************************** */
#ifndef COMMAND_HPP
# define COMMAND_HPP
# include "AClient.hpp"
# include "Server.hpp"
# include "IRCReplyCodes.hpp"
# include "verboseCheck.hpp"
# include "colors.hpp"
# include <string>
enum e_command {
CMD_USER,
CMD_NICK,
CMD_PASS,
CMD_PING,
CMD_QUIT,
CMD_AWAY,
CMD_SIZE_OPEN,
CMD_SEND,
CMD_ACCEPT,
CMD_REJECT,
CMD_PRIVMSG,
CMD_LIST,
CMD_JOIN,
CMD_WHO,
CMD_WHOIS,
CMD_PART,
CMD_INVITE,
CMD_TOPIC,
CMD_MODE,
CMD_NAMES,
CMD_KICK,
CMD_NOTICE,
CMD_SIZE_REGISTERED,
CMD_OPER,
CMD_KILL,
CMD_SIZE_OPER,
CMD_EMPTY,
CMD_UNKNOWN
};
const int CMD_SIZE_OPEN_INT = CMD_SIZE_OPEN;
const int CMD_SIZE_REGISTERED_INT = CMD_SIZE_REGISTERED;
const int CMD_SIZE_OPER_INT = CMD_SIZE_OPER;
namespace Command {
void parseCmd(AClient &user, const std::string& cmd, const std::vector<std::string>& args);
}
#endif