mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 00:14:07 +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;
|
extern int lineno;
|
||||||
|
|
||||||
#define NOT_AUTHORISED (-1)
|
#define NOT_AUTHORISED (-1)
|
||||||
#define SOCKET_ERROR (-2)
|
#define I_SOCKET_ERROR (-2)
|
||||||
#define I_LINE_FULL (-3)
|
#define I_LINE_FULL (-3)
|
||||||
#define BANNED_CLIENT (-4)
|
#define BANNED_CLIENT (-4)
|
||||||
#define TOO_MANY_LOCAL (-6)
|
#define TOO_MANY_LOCAL (-6)
|
||||||
|
|
|
@ -169,7 +169,7 @@ free_conf(struct ConfItem *aconf)
|
||||||
* inputs - pointer to client
|
* inputs - pointer to client
|
||||||
* output - 0 = Success
|
* output - 0 = Success
|
||||||
* NOT_AUTHORISED (-1) = Access denied (no I line match)
|
* 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
|
* I_LINE_FULL (-3) = I-line is full
|
||||||
* TOO_MANY (-4) = Too many connections from hostname
|
* TOO_MANY (-4) = Too many connections from hostname
|
||||||
* BANNED_CLIENT (-5) = K-lined
|
* BANNED_CLIENT (-5) = K-lined
|
||||||
|
@ -190,7 +190,7 @@ check_client(struct Client *client_p, struct Client *source_p, const char *usern
|
||||||
|
|
||||||
switch (i)
|
switch (i)
|
||||||
{
|
{
|
||||||
case SOCKET_ERROR:
|
case I_SOCKET_ERROR:
|
||||||
exit_client(client_p, source_p, &me, "Socket Error");
|
exit_client(client_p, source_p, &me, "Socket Error");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue