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

Comparing ircd-hybrid/trunk/src/client.c (file contents):
Revision 1798 by michael, Sun Mar 31 17:09:50 2013 UTC vs.
Revision 1991 by michael, Thu May 9 16:01:15 2013 UTC

# Line 391 | Line 391 | check_conf_klines(void)
391      }
392  
393      if ((conf = find_matching_name_conf(CONF_XLINE,  client_p->info,
394 <                                        NULL, NULL, 0)) != NULL ||
395 <        (conf = find_matching_name_conf(CONF_RXLINE, client_p->info,
396 <                                        NULL, NULL, 0)) != NULL)
394 >                                        NULL, NULL, 0)))
395      {
396        ban_them(client_p, conf);
397        continue;
# Line 436 | Line 434 | ban_them(struct Client *client_p, struct
434  
435    switch (conf->type)
436    {
439 –    case CONF_RKLINE:
437      case CONF_KLINE:
438        type_string = kline_string;
439        break;
# Line 446 | Line 443 | ban_them(struct Client *client_p, struct
443      case CONF_GLINE:
444        type_string = gline_string;
445        break;
449 –    case CONF_RXLINE:
446      case CONF_XLINE:
447        type_string = xline_string;
448        ++conf->count;
# Line 922 | Line 918 | exit_client(struct Client *source_p, str
918      */
919      close_connection(source_p);
920    }
921 +  else if (IsClient(source_p) && HasFlag(source_p->servptr, FLAGS_EOB))
922 +    sendto_realops_flags(UMODE_FARCONNECT, L_ALL, SEND_NOTICE,
923 +                         "Client exiting at %s: %s (%s@%s) [%s]",
924 +                         source_p->servptr->name, source_p->name,
925 +                         source_p->username, source_p->host, comment);
926  
927    if (IsServer(source_p))
928    {
# Line 1182 | Line 1183 | idle_time_get(const struct Client *sourc
1183    unsigned int idle = 0;
1184    unsigned int min_idle = 0;
1185    unsigned int max_idle = 0;
1186 <  struct ClassItem *class = get_class_ptr(&target_p->localClient->confs);
1186 >  const struct ClassItem *class = get_class_ptr(&target_p->localClient->confs);
1187  
1188    if (!(class->flags & CLASS_FLAGS_FAKE_IDLE) || target_p == source_p)
1189      return CurrentTime - target_p->localClient->last_privmsg;

Diff Legend

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