Fix some "whitespace glitches"
Some have been introduced by commit 7b01bb83
, some are older.
This commit is contained in:
parent
f37600ee01
commit
0d67be3f30
|
@ -362,7 +362,7 @@ Channel_Kick(CLIENT *Peer, CLIENT *Target, CLIENT *Origin, const char *Name,
|
|||
}
|
||||
ptr++;
|
||||
}
|
||||
|
||||
|
||||
if(!can_kick) {
|
||||
IRC_WriteStrClient(Origin, ERR_CHANOPPRIVTOLOW_MSG,
|
||||
Client_ID(Origin), Name);
|
||||
|
|
|
@ -117,7 +117,7 @@ IRC_INFO(CLIENT * Client, REQUEST * Req)
|
|||
target = Client_Search(Req->argv[0]);
|
||||
else
|
||||
target = Client_ThisServer();
|
||||
|
||||
|
||||
/* Make sure that the target is a server */
|
||||
if (target && Client_Type(target) != CLIENT_SERVER)
|
||||
target = Client_Introducer(target);
|
||||
|
@ -811,8 +811,8 @@ static char *
|
|||
who_flags_qualifier(CLIENT *Client, const char *chan_user_modes, char *str, size_t len)
|
||||
{
|
||||
assert(Client != NULL);
|
||||
|
||||
if (Client_Cap(Client) & CLIENT_CAP_MULTI_PREFIX) {
|
||||
|
||||
if (Client_Cap(Client) & CLIENT_CAP_MULTI_PREFIX) {
|
||||
if (strchr(chan_user_modes, 'q'))
|
||||
strlcat(str, "~", len);
|
||||
if (strchr(chan_user_modes, 'a'))
|
||||
|
@ -823,10 +823,10 @@ who_flags_qualifier(CLIENT *Client, const char *chan_user_modes, char *str, size
|
|||
strlcat(str, "&", len);
|
||||
if (strchr(chan_user_modes, 'v'))
|
||||
strlcat(str, "+", len);
|
||||
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
if (strchr(chan_user_modes, 'q'))
|
||||
strlcat(str, "~", len);
|
||||
else if (strchr(chan_user_modes, 'a'))
|
||||
|
@ -837,7 +837,7 @@ who_flags_qualifier(CLIENT *Client, const char *chan_user_modes, char *str, size
|
|||
strlcat(str, "%", len);
|
||||
else if (strchr(chan_user_modes, 'v'))
|
||||
strlcat(str, "+", len);
|
||||
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
|
@ -890,7 +890,7 @@ IRC_WHO_Channel(CLIENT *Client, CHANNEL *Chan, bool OnlyOps)
|
|||
|
||||
chan_user_modes = Channel_UserModes(Chan, c);
|
||||
who_flags_qualifier(c, chan_user_modes, flags, sizeof(flags));
|
||||
|
||||
|
||||
if (!write_whoreply(Client, c, Channel_Name(Chan),
|
||||
flags))
|
||||
return DISCONNECTED;
|
||||
|
@ -1479,7 +1479,7 @@ IRC_Send_LUSERS(CLIENT *Client)
|
|||
Conn_CountMax(), Conn_CountAccepted()))
|
||||
return DISCONNECTED;
|
||||
#endif
|
||||
|
||||
|
||||
return CONNECTED;
|
||||
} /* IRC_Send_LUSERS */
|
||||
|
||||
|
@ -1609,7 +1609,7 @@ IRC_Send_NAMES(CLIENT * Client, CHANNEL * Chan)
|
|||
if (is_member || is_visible) {
|
||||
if (str[strlen(str) - 1] != ':')
|
||||
strlcat(str, " ", sizeof(str));
|
||||
|
||||
|
||||
who_flags_qualifier(cl, Channel_UserModes(Chan, cl), str, sizeof(str));
|
||||
strlcat(str, Client_ID(cl), sizeof(str));
|
||||
|
||||
|
|
|
@ -441,7 +441,7 @@ Channel_Mode(CLIENT *Client, REQUEST *Req, CLIENT *Origin, CHANNEL *Channel)
|
|||
if(Client_OperByMe(Client) && Conf_OperCanMode) {
|
||||
is_oper = true;
|
||||
}
|
||||
|
||||
|
||||
/* Check if client is a server/service */
|
||||
if(Client_Type(Client) == CLIENT_SERVER ||
|
||||
Client_Type(Client) == CLIENT_SERVICE) {
|
||||
|
@ -527,7 +527,7 @@ Channel_Mode(CLIENT *Client, REQUEST *Req, CLIENT *Origin, CHANNEL *Channel)
|
|||
/* Are there arguments left? */
|
||||
if (arg_arg >= Req->argc)
|
||||
arg_arg = -1;
|
||||
|
||||
|
||||
if(!is_machine) {
|
||||
o_mode_ptr = Channel_UserModes(Channel, Client);
|
||||
while( *o_mode_ptr ) {
|
||||
|
|
|
@ -54,7 +54,7 @@ IRC_SERVER( CLIENT *Client, REQUEST *Req )
|
|||
CLIENT *from, *c;
|
||||
int i;
|
||||
CONN_ID con;
|
||||
|
||||
|
||||
assert( Client != NULL );
|
||||
assert( Req != NULL );
|
||||
|
||||
|
@ -88,7 +88,7 @@ IRC_SERVER( CLIENT *Client, REQUEST *Req )
|
|||
Conn_Close( Client_Conn( Client ), NULL, "Bad password", true);
|
||||
return DISCONNECTED;
|
||||
}
|
||||
|
||||
|
||||
/* Is there a registered server with this ID? */
|
||||
if( ! Client_CheckID( Client, Req->argv[0] )) return DISCONNECTED;
|
||||
|
||||
|
@ -206,7 +206,7 @@ IRC_NJOIN( CLIENT *Client, REQUEST *Req )
|
|||
bool is_owner, is_chanadmin, is_op, is_halfop, is_voiced;
|
||||
CHANNEL *chan;
|
||||
CLIENT *c;
|
||||
|
||||
|
||||
assert( Client != NULL );
|
||||
assert( Req != NULL );
|
||||
|
||||
|
@ -220,11 +220,11 @@ IRC_NJOIN( CLIENT *Client, REQUEST *Req )
|
|||
while( ptr )
|
||||
{
|
||||
is_op = is_voiced = false;
|
||||
|
||||
|
||||
/* cut off prefixes */
|
||||
while(( *ptr == '~') || ( *ptr == '&' ) || ( *ptr == '@' ) ||
|
||||
( *ptr == '%') || ( *ptr == '+' ))
|
||||
{
|
||||
{
|
||||
if( *ptr == '~' ) is_owner = true;
|
||||
if( *ptr == '&' ) is_chanadmin = true;
|
||||
if( *ptr == '@' ) is_op = true;
|
||||
|
@ -239,7 +239,7 @@ IRC_NJOIN( CLIENT *Client, REQUEST *Req )
|
|||
Channel_Join( c, channame );
|
||||
chan = Channel_Search( channame );
|
||||
assert( chan != NULL );
|
||||
|
||||
|
||||
if( is_owner ) Channel_UserModeAdd( chan, c, 'q' );
|
||||
if( is_chanadmin ) Channel_UserModeAdd( chan, c, 'a' );
|
||||
if( is_op ) Channel_UserModeAdd( chan, c, 'o' );
|
||||
|
@ -266,7 +266,7 @@ IRC_NJOIN( CLIENT *Client, REQUEST *Req )
|
|||
strlcat( nick_out, ptr, sizeof( nick_out ));
|
||||
}
|
||||
else Log( LOG_ERR, "Got NJOIN for unknown nick \"%s\" for channel \"%s\"!", ptr, channame );
|
||||
|
||||
|
||||
/* search for next Nick */
|
||||
ptr = strtok( NULL, "," );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue