mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd: rewrite SOCKET_ERROR as I_SOCKET_ERROR
This commit is contained in:
parent
2dea53a203
commit
85368a13d3
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue