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

Comparing ircd-hybrid/trunk/src/parse.c (file contents):
Revision 8431 by michael, Tue Mar 27 18:49:15 2018 UTC vs.
Revision 8664 by michael, Thu Nov 22 14:26:32 2018 UTC

# Line 176 | Line 176 | parse_handle_numeric(unsigned int numeri
176    else
177      target_p = find_person(source_p, parv[1]);
178  
179 <  if ((!target_p || target_p->from == source_p->from) && !chptr)
179 >  if ((target_p == NULL || target_p->from == source_p->from) && chptr == NULL)
180      return;
181  
182    /*
# Line 393 | Line 393 | parse(struct Client *client_p, char *pbu
393      if (paramcount > MAXPARA)
394        paramcount = MAXPARA;
395  
396 <    while (1)
396 >    while (true)
397      {
398         while (*s == ' ')
399           *s++ = '\0';
# Line 404 | Line 404 | parse(struct Client *client_p, char *pbu
404         if (*s == ':')
405         {
406           /* The rest is single parameter--can include blanks also. */
407 <         para[++parc] = s + (!numeric);  /* Keep the colon if it's a numeric */
407 >         para[++parc] = s + (numeric == 0);  /* Keep the colon if it's a numeric */
408           break;
409         }
410  

Diff Legend

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