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

Comparing ircd-hybrid/src/client.c (file contents):
Revision 223 by michael, Thu Nov 3 15:36:27 2005 UTC vs.
Revision 224 by adx, Thu Nov 3 17:05:46 2005 UTC

# Line 353 | Line 353 | check_unknowns_list(void)
353      if (client_p->localClient->reject_delay > 0)
354      {
355        if (client_p->localClient->reject_delay <= CurrentTime)
356 <        exit_client(client_p, &me, "Rejected");
356 >        exit_client(client_p, &me, "Rejected");
357        continue;
358      }
359  
# Line 394 | Line 394 | check_conf_klines(void)
394                                    client_p->localClient->aftype)) != NULL)
395      {
396        if (aconf->status & CONF_EXEMPTDLINE)
397 <        continue;
397 >        continue;
398  
399        conf = aconf->conf_ptr;
400        ban_them(client_p, conf);
401        continue; /* and go examine next fd/client_p */
402      }
403  
404 <    if (ConfigFileEntry.glines && (aconf = find_gline(client_p)))
404 >    if (ConfigFileEntry.glines && (aconf = find_gline(client_p)) != NULL)
405      {
406 <      if (IsExemptKline(client_p) ||
407 <          IsExemptGline(client_p))
406 >      if (IsExemptKline(client_p) || IsExemptGline(client_p))
407        {
408          sendto_realops_flags(UMODE_ALL, L_ALL,
409 <                             "GLINE over-ruled for %s, client is %sline_exempt",
410 <                             get_client_name(client_p, HIDE_IP), IsExemptKline(client_p) ? "k" : "g");
409 >                             "GLINE over-ruled for %s, client is %cline_exempt",
410 >                             get_client_name(client_p, HIDE_IP),
411 >                             IsExemptKline(client_p) ? 'k' : 'g');
412          continue;
413        }
414  
# Line 1177 | Line 1177 | close_connection(struct Client *client_p
1177   * Actually stderr is still there IFF ircd was run with -s --Rodder
1178   */
1179   void
1180 < report_error(int level, const char* text, const char* who, int error)
1180 > report_error(int level, const char *text, const char *who, int error)
1181   {
1182 <  who = (who) ? who : "";
1182 >  who = (who != NULL) ? who : "";
1183  
1184    sendto_realops_flags(UMODE_DEBUG, level, text, who, strerror(error));
1185    log_oper_action(LOG_IOERR_TYPE, NULL, "%s %s %s\n", who, text, strerror(error));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines