-
Notifications
You must be signed in to change notification settings - Fork 2
/
error_request.hpp
71 lines (64 loc) · 5.97 KB
/
error_request.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
63
64
65
66
67
68
69
70
71
#ifndef __ERROR_REQUEST_HPP__
#define __ERROR_REQUEST_HPP__
//Special case For Iba7lawn n IRC
//Errors
#define ERR_TOOMANYPARAM(Client) "4001 " + Client + " :Too Many Paramatre, Please try again!"
#define ERR_ALLREADYENTERPASS(Client) "4002 " + Client + " :You have already entered the password!"
#define RPL_CORRECTPASS(Client) "4003 " + Client + " :Your password is correct ✅"
#define ERR_MISSPASS(Client) "4004 " + Client + " :Please enter the password to connect to the server first. 🚫"
#define RPL_ALREADYONCHANNEL(NickName,invNickName,Chanel) "112 " + NickName + " " + invNickName + " " + Chanel + " :is already on channel"
#define ERR_CANNOTKICKOP(NickName,channel) "113" + NickName + " " + channel + " :You can't KICK the operator"
#define ERR_NOUSERS(NickName,chanel) "395 " + NickName + " " + chanel + " :User does not exist"
//Replys
//=======================================================================****LIMECHAT****============================================================================//
#define RPL_WELCOME(nick, network, user, host) "001 " + nick + " :Welcome to the " + network + " Network, " + nick + "!" + user + "@" + host
#define RPL_YOURHOST(nick, server_name) "002 " + nick + " :Your host is " + server_name
#define RPL_CREATED(nick, date) "003 " + nick + " :This server was created " + date
#define RPL_MOTDSTART(Nickname) "375 " + Nickname + " :- <Iba7lawn n irc> Message of the day - "
#define ERR_NOTREGISTERED(Client) "451 " + Client + " :You have not registered"
#define RPL_MOTD(nick, line) "372 " + nick + " :" + line
#define RPL_ENDOFMOTD(nick) "376 " + nick + " :End of /MOTD command"
#define ERR_NEEDMOREPARAMS(nick) "461 " + nick + " :Not enough parameters"
#define ERR_PASSWDMISMATCH(nick) "464 " + nick + " :Incorrect password"
#define ERR_UNKNOWNCOMMAND(nick, cmd) "421 " + nick + " " + cmd + " :Unknown command"
#define ERR_ERRONEUSNICKNAME(nick) "432 " + nick + " :Erroneus nickname"
#define ERR_NICKNAMEINUSE(nick) "433 " + nick + " :Nickname is already in use"
#define ERR_ALREADYREGISTRED(nick) "462 " + nick + " :You may not reregister"
#define ERR_CANNOTSENDTOCHAN(nick) "404 " + nick + " :Cannot send to channel"
#define ERR_NOTEXTTOSEND(nick) "412 " + nick + " :No text to send"
#define ERR_NOSUCHNICK(nick,nick_channel) "401 " + nick + " " + nick_channel + " :No such nick/channel"
#define ERR_BADCHANNAME(nick) "479 " + nick + " :Invalid channel name"
#define ERR_USERONCHANNEL(nick, ch) "443 " + nick + " " + ch + " :is already on channel"
#define RPL_NAMREPLY(nick, ch, members) "353 " + nick + " = " + ch + " :" + members
#define RPL_ENDOFNAMES(nick, ch) "366 " + nick + " " + ch + " :End of /NAMES list"
#define ERR_NOSUCHCHANNEL(nick, ch) "403 " + nick + " " + ch + " :No such channel"
#define RPL_TOPIC(nick, ch, topic) "332 " + nick + " " + ch + " :" + topic
#define ERR_NOTONCHANNEL(nick, ch) "442 " + nick + " " + ch + " :You're not on that channel"
#define RPL_NOTOPIC(nick, ch) "331 " + nick + " " + ch + " :No topic is set"
#define ERR_UNKNOWNMODE(nick, char) "472 " + nick + " " + char + " :is unknown mode char to me"
#define ERR_CHANNELISFULL(nick, ch) "471 " + nick + " " + ch + " :Cannot join channel (+l)"
#define ERR_INVITEONLYCHAN(nick, ch) "473 " + nick + " " + ch + " :Cannot join channel (+i)"
#define ERR_BADCHANNELKEY(nick, ch) "475 " + nick + " " + ch + " :Cannot join channel (+k)"
#define ERR_CHANOPRIVSNEEDED(nick, ch) "482 " + nick + " " + ch + " :You're not channel operator"
#define ERR_USERNOTINCHANNEL(nick, nick2, ch) "441 " + nick + " " + nick2 + " " + ch + " :They aren't on that channel"
#define RPL_INVITING(rec, sen, ch) "341 " + rec + " " + sen + " " + ch
#define ERR_NOSUCHSERVER(nick, ser) "402 " + nick + " " + ser + " :No such server"
#define ERR_NOORIGIN(nick) "409 " + nick + " :No origin specified"
#define RPL_YOUREOPER(nick) "381 " + nick + " :You are now an IRC operator"
#define ERR_NOOPERHOST(nick) "491 " + nick + " :No O-lines for your host"
#define ERR_USERSDONTMATCH(nick) "502 " + nick + " :Cant change mode for other users"
#define RPL_UMODEIS(nick, mode) "221 " + nick + " " + mode
#define ERR_NOTEXTTOSEND(nick) "412 " + nick + " :No text to send"
#define ERR_NOPRIVILEGES(nick) "481 " + nick + " :Permission Denied- You're not an IRC operator"
#define ERR_NONICKNAMEGIVEN(nick) "431 " + nick + " :No nickname given"
#define RPL_LISTSTART(nick) "321 " + nick + " Channel :Users Name"
#define RPL_LIST(nick, ch, nb, topic) "322 " + nick + " " + ch + " " + nb + " :" + topic
#define RPL_LISTEND(nick) "323 " + nick + " :End of /LIST"
#define RPL_WHOISUSER(nick1,nick2,user,host,realname) "311 " + nick1 + " " + nick2 + " " + user + " " + host + " * :" + realname
#define RPL_WHOISCHANNELS(nick1,nick2, channels) "319 " + nick1 + " " + nick2 + " :" + channels
#define RPL_WHOISSERVER(nick1, nick2, ser, infos) "312 " + nick1 + " " + nick2 + " " + ser + " :" + infos
#define RPL_WHOISIDLE(nick1, nick2, diff, int) "317 " + nick1 + " " + nick2 + " " + diff + " " + int + " :seconds idle"
#define RPL_ENDOFWHOIS(nick1,nick2) "318 " + nick1 + " " + nick2 + " :End of /WHOIS list"
#define RPL_CHANNELMODEIS(nick, channel, modestring, modeArg) "318 " + nick + " " + channel + " " + modestring + " " + modeArg
#define ERR_SPECIFYPARAM(nick, channel) "325 " + nick + " " + channel + "o :You must specify a parameter for the op mode. Syntax: <nick>"
#endif