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

Comparing ircd-hybrid/branches/8.2.x/modules/m_accept.c (file contents):
Revision 3505 by michael, Sat May 10 19:51:42 2014 UTC vs.
Revision 3604 by michael, Tue May 20 17:39:31 2014 UTC

# Line 57 | Line 57 | list_accepts(struct Client *source_p)
57      const struct split_nuh_item *accept_p = ptr->data;
58      size_t masklen = strlen(accept_p->nickptr) +
59                       strlen(accept_p->userptr) +
60 <                     strlen(accept_p->hostptr) + 2 /* !@ */ ;
60 >                     strlen(accept_p->hostptr) + 2 /* +2 for !@ */ ;
61  
62      if ((t - nicks) + masklen + len  > IRCD_BUFSIZE)
63      {
# Line 131 | Line 131 | m_accept(struct Client *source_p, int pa
131    for (mask = strtoken(&p, parv[1], ","); mask;
132         mask = strtoken(&p,    NULL, ","))
133    {
134 <    if (*mask == '-' && *++mask != '\0')
134 >    if (*mask == '-' && *++mask)
135      {
136        nuh.nuhmask  = mask;
137        nuh.nickptr  = nick;
# Line 152 | Line 152 | m_accept(struct Client *source_p, int pa
152  
153        del_accept(accept_p, source_p);
154      }
155 <    else if (*mask != '\0')
155 >    else if (*mask)
156      {
157        if (dlink_list_length(&source_p->localClient->acceptlist) >=
158            ConfigFileEntry.max_accept)

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)