ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/channel.c
(Generate patch)

Comparing ircd-hybrid/branches/8.2.x/src/channel.c (file contents):
Revision 8798 by michael, Sat Jan 19 00:11:37 2019 UTC vs.
Revision 8806 by michael, Sat Jan 19 19:32:10 2019 UTC

# Line 656 | Line 656 | bool
656   is_banned(const struct Channel *chptr, const struct Client *client_p)
657   {
658    if (find_bmask(client_p, &chptr->banlist) == true)
659 <    if (find_bmask(client_p, &chptr->exceptlist) == false)
660 <      return true;
661 <
659 >    return find_bmask(client_p, &chptr->exceptlist);
660    return false;
661   }
662  
# Line 737 | Line 735 | find_channel_link(const struct Client *c
735   static bool
736   msg_has_ctrls(const char *message)
737   {
738 <  const unsigned char *p = (const unsigned char *)message;
741 <
742 <  for (; *p; ++p)
738 >  for (const char *p = message; *p; ++p)
739    {
740      if (*p > 31 || *p == 1)
741        continue;  /* No control code or CTCP */
# Line 877 | Line 873 | check_spambot_warning(struct Client *cli
873      }
874      else
875      {
876 <      if ((CurrentTime - (client_p->connection->last_join_time)) <
877 <          GlobalSetOptions.spam_time)
882 <        client_p->connection->join_leave_count++;  /* It's a possible spambot */
876 >      if ((CurrentTime - (client_p->connection->last_join_time)) < GlobalSetOptions.spam_time)
877 >        ++client_p->connection->join_leave_count;  /* It's a possible spambot */
878      }
879  
880      if (name)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines