Module: ngircd.git Branch: master Commit: 0d67be3f301e280225d8a04048ebb77a976d8169 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=0d67b...
Author: Alexander Barton alex@barton.de Date: Tue Sep 11 12:48:51 2012 +0200
Fix some "whitespace glitches"
Some have been introduced by commit 7b01bb83, some are older.
---
src/ngircd/channel.c | 2 +- src/ngircd/irc-info.c | 18 +++++++++--------- src/ngircd/irc-mode.c | 4 ++-- src/ngircd/irc-server.c | 14 +++++++------- 4 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/src/ngircd/channel.c b/src/ngircd/channel.c index 8d001a8..59fe002 100644 --- a/src/ngircd/channel.c +++ b/src/ngircd/channel.c @@ -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); diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c index 7a122ef..a1bebb4 100644 --- a/src/ngircd/irc-info.c +++ b/src/ngircd/irc-info.c @@ -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));
diff --git a/src/ngircd/irc-mode.c b/src/ngircd/irc-mode.c index f394634..7380c6e 100644 --- a/src/ngircd/irc-mode.c +++ b/src/ngircd/irc-mode.c @@ -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 ) { diff --git a/src/ngircd/irc-server.c b/src/ngircd/irc-server.c index f9182d9..380ab62 100644 --- a/src/ngircd/irc-server.c +++ b/src/ngircd/irc-server.c @@ -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, "," ); }
ngircd-commits@lists.barton.de