mirror of
https://github.com/osmarks/ngircd.git
synced 2025-07-07 12:22:49 +00:00
Whitespace fixes: remove trailing tabulator characters.
This commit is contained in:
parent
2fce881d96
commit
e56bd8ff89
@ -59,7 +59,7 @@ IRC_PASS( CLIENT *Client, REQUEST *Req )
|
|||||||
if (Client_Conn(Client) <= NONE)
|
if (Client_Conn(Client) <= NONE)
|
||||||
return IRC_WriteStrClient(Client, ERR_UNKNOWNCOMMAND_MSG,
|
return IRC_WriteStrClient(Client, ERR_UNKNOWNCOMMAND_MSG,
|
||||||
Client_ID(Client), Req->command);
|
Client_ID(Client), Req->command);
|
||||||
|
|
||||||
if (Client_Type(Client) == CLIENT_UNKNOWN && Req->argc == 1) {
|
if (Client_Type(Client) == CLIENT_UNKNOWN && Req->argc == 1) {
|
||||||
/* Not yet registered "unknown" connection, PASS with one
|
/* Not yet registered "unknown" connection, PASS with one
|
||||||
* argument: either a regular client, service, or server
|
* argument: either a regular client, service, or server
|
||||||
@ -99,7 +99,7 @@ IRC_PASS( CLIENT *Client, REQUEST *Req )
|
|||||||
protolow = atoi(&Req->argv[1][2]);
|
protolow = atoi(&Req->argv[1][2]);
|
||||||
Req->argv[1][2] = '\0';
|
Req->argv[1][2] = '\0';
|
||||||
protohigh = atoi(Req->argv[1]);
|
protohigh = atoi(Req->argv[1]);
|
||||||
|
|
||||||
Req->argv[1][2] = c2;
|
Req->argv[1][2] = c2;
|
||||||
Req->argv[1][4] = c4;
|
Req->argv[1][4] = c4;
|
||||||
} else
|
} else
|
||||||
@ -110,7 +110,7 @@ IRC_PASS( CLIENT *Client, REQUEST *Req )
|
|||||||
type = &Req->argv[1][4];
|
type = &Req->argv[1][4];
|
||||||
else
|
else
|
||||||
type = NULL;
|
type = NULL;
|
||||||
|
|
||||||
/* Protocol flags/options */
|
/* Protocol flags/options */
|
||||||
if (Req->argc >= 4)
|
if (Req->argc >= 4)
|
||||||
orig_flags = Req->argv[3];
|
orig_flags = Req->argv[3];
|
||||||
@ -422,10 +422,10 @@ IRC_QUIT( CLIENT *Client, REQUEST *Req )
|
|||||||
{
|
{
|
||||||
CLIENT *target;
|
CLIENT *target;
|
||||||
char quitmsg[LINE_LEN];
|
char quitmsg[LINE_LEN];
|
||||||
|
|
||||||
assert( Client != NULL );
|
assert( Client != NULL );
|
||||||
assert( Req != NULL );
|
assert( Req != NULL );
|
||||||
|
|
||||||
/* Wrong number of arguments? */
|
/* Wrong number of arguments? */
|
||||||
if( Req->argc > 1 )
|
if( Req->argc > 1 )
|
||||||
return IRC_WriteStrClient( Client, ERR_NEEDMOREPARAMS_MSG, Client_ID( Client ), Req->command );
|
return IRC_WriteStrClient( Client, ERR_NEEDMOREPARAMS_MSG, Client_ID( Client ), Req->command );
|
||||||
@ -459,7 +459,7 @@ IRC_QUIT( CLIENT *Client, REQUEST *Req )
|
|||||||
|
|
||||||
/* User, Service, oder noch nicht registriert */
|
/* User, Service, oder noch nicht registriert */
|
||||||
Conn_Close( Client_Conn( Client ), "Got QUIT command.", Req->argc == 1 ? quitmsg : NULL, true);
|
Conn_Close( Client_Conn( Client ), "Got QUIT command.", Req->argc == 1 ? quitmsg : NULL, true);
|
||||||
|
|
||||||
return DISCONNECTED;
|
return DISCONNECTED;
|
||||||
}
|
}
|
||||||
} /* IRC_QUIT */
|
} /* IRC_QUIT */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user