Skip to content

Commit

Permalink
Fixed indents and documentation
Browse files Browse the repository at this point in the history
(also updated the copyright date on the txt I edited)
  • Loading branch information
LucentW committed Apr 29, 2015
1 parent 21767c9 commit 6fc5355
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion doc/Modes.txt
Expand Up @@ -2,7 +2,7 @@
ngIRCd - Next Generation IRC Server
http://ngircd.barton.de/

(c)2001-2014 Alexander Barton and Contributors.
(c)2001-2015 Alexander Barton and Contributors.
ngIRCd is free software and published under the
terms of the GNU General Public License.

Expand All @@ -28,6 +28,7 @@ channels he is using at the moment.
C 19 Only users that share a channel are allowed to send messages.
F 22 Relaxed flood protection (only settable by IRC Operators).
i 0.0.1 User is "invisible".
I 23 No channels are shown on WHOIS (IRC Operators can always see those).
o 0.0.1 User is IRC operator.
q 20 User is protected, can not be kicked from a channel.
r 0.0.1 User is restricted.
Expand Down
5 changes: 2 additions & 3 deletions src/ngircd/irc-info.c
Expand Up @@ -327,20 +327,19 @@ IRC_WHOIS_SendReply(CLIENT *Client, CLIENT *from, CLIENT *c)

/* Secret channel? */
if (Channel_HasMode(chan, 's')
&& !Channel_IsMemberOf(chan, Client))
&& !Channel_IsMemberOf(chan, Client))
continue;

/* Local channel and request is not from a user? */
if (Client_Type(Client) == CLIENT_SERVER
&& Channel_IsLocal(chan))
&& Channel_IsLocal(chan))
continue;

/* Concatenate channel names */
if (str[strlen(str) - 1] != ':')
strlcat(str, " ", sizeof(str));

who_flags_qualifier(Client, Channel_UserModes(chan, c),
str, sizeof(str));
strlcat(str, Channel_Name(chan), sizeof(str));

if (strlen(str) > (COMMAND_LEN - CHANNEL_NAME_LEN - 4)) {
Expand Down

0 comments on commit 6fc5355

Please sign in to comment.