-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.hpp
62 lines (49 loc) · 1.62 KB
/
main.hpp
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
#ifndef MAIN_HPP
#define MAIN_HPP
#include <algorithm>
#include <unistd.h>
#include <poll.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <map>
#include <vector>
#include <utility>
#include <string.h>
#include <iostream>
#include <sstream>
#define BUF_SIZE 1024
// PASS
#define ERR_NEEDMOREPARAMS "Not enough parameters\r\n"
#define ERR_PASSWDMISMATCH "Password incorrect\r\n"
#define ERR_ALREADYREGISTRED "You may not reregister\r\n"
// NICK
#define ERR_NICKNAMEINUSE "Nickname is already in use\r\n"
#define ERR_NICKCOLLISION "Nickname collision KILL from\r\n"
#define ERR_NONICKNAMEGIVEN "No nickname given\r\n"
#define ERR_ERRONEUSNICKNAME "Erroneus nickname\r\n"
// PRIVMSG
#define ERR_NOSUCHCHANNEL "No such channel\r\n"
#define ERR_NOSUCHNICK "No such nick/channel\r\n"
// PART
#define ERR_NOSUCHCHANNEL "No such channel\r\n"
#define ERR_NOTONCHANNEL "You're not on that channel\r\n"
// KICK
#define ERR_CHANOPRIVSNEEDED "You're not channel operator\r\n"
#define ERR_USERNOTINCHANNEL "They aren't on that channel\r\n"
// COMMON
#define ERR_NOTREGISTERED "You have not registered\r\n"
// MODE
#define ERR_UMODEUNKNOWNFLAG "Unknown MODE flag\r\n"
#define ERR_USERSDONTMATCH "Can't change mode for other users\r\n"
#define ERR_UNKNOWNMODE "is unknown mode char to me\r\n"
#define ERR_CHANNELISFULL "Cannot join channel (+l)\r\n"
// JOIN
#define ERR_INVITEONLYCHAN "Cannot join channel (+i)\r\n"
#define ERR_BADCHANNELKEY "Cannot join channel (+k)\r\n"
// TOPIC
#define RPL_NOTOPIC "No topic is set\r\n"
// INVITE
#define ERR_USERONCHANNEL "is already on channel\r\n"
#define RPL_INVITING "Inviting\r\n"
#endif