0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd: rewrite SOCKET_ERROR as I_SOCKET_ERROR

This commit is contained in:
William Pitcock 2016-03-20 01:44:00 -05:00
parent 2dea53a203
commit 85368a13d3
2 changed files with 3 additions and 3 deletions

View file

@ -393,7 +393,7 @@ extern char conffilebuf[IRCD_BUFSIZE + 1];
extern int lineno;
#define NOT_AUTHORISED (-1)
#define SOCKET_ERROR (-2)
#define I_SOCKET_ERROR (-2)
#define I_LINE_FULL (-3)
#define BANNED_CLIENT (-4)
#define TOO_MANY_LOCAL (-6)

View file

@ -169,7 +169,7 @@ free_conf(struct ConfItem *aconf)
* inputs - pointer to client
* output - 0 = Success
* NOT_AUTHORISED (-1) = Access denied (no I line match)
* SOCKET_ERROR (-2) = Bad socket.
* I_SOCKET_ERROR (-2) = Bad socket.
* I_LINE_FULL (-3) = I-line is full
* TOO_MANY (-4) = Too many connections from hostname
* BANNED_CLIENT (-5) = K-lined
@ -190,7 +190,7 @@ check_client(struct Client *client_p, struct Client *source_p, const char *usern
switch (i)
{
case SOCKET_ERROR:
case I_SOCKET_ERROR:
exit_client(client_p, source_p, &me, "Socket Error");
break;