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

Comparing ircd-hybrid-8/src/client.c (file contents):
Revision 1246 by michael, Fri Sep 30 10:47:53 2011 UTC vs.
Revision 1247 by michael, Sat Oct 1 07:54:24 2011 UTC

# Line 288 | Line 288 | check_pings_list(dlink_list *list)
288              sendto_realops_flags(UMODE_ALL, L_OPER,
289                                   "No response from %s, closing link",
290                                   get_client_name(client_p, MASK_IP));
291 <            ilog(L_NOTICE, "No response from %s, closing link",
291 >            ilog(LOG_TYPE_IRCD, "No response from %s, closing link",
292                   get_client_name(client_p, HIDE_IP));
293            }
294  
# Line 311 | Line 311 | check_pings_list(dlink_list *list)
311            sendto_realops_flags(UMODE_ALL, L_OPER,
312                                 "Warning, no response from %s in %d seconds",
313                                 get_client_name(client_p, MASK_IP), pingwarn);
314 <          ilog(L_NOTICE, "No response from %s in %d seconds",
314 >          ilog(LOG_TYPE_IRCD, "No response from %s in %d seconds",
315                 get_client_name(client_p, HIDE_IP), pingwarn);
316          }
317        }
# Line 899 | Line 899 | exit_client(struct Client *source_p, str
899      }
900      else if (IsClient(source_p))
901      {
902 +      time_t on_for = CurrentTime - source_p->localClient->firsttime;
903        assert(Count.local > 0);
904        Count.local--;
905  
# Line 923 | Line 924 | exit_client(struct Client *source_p, str
924                             source_p->name,
925                             source_p->username,
926                             source_p->host,
926
927                             ConfigFileEntry.hide_spoof_ips && IsIPSpoof(source_p) ?
928                             "255.255.255.255" : source_p->sockhost,
929                             comment);
930 +      ilog(LOG_TYPE_USER, "%s (%3u:%02u:%02u): %s!%s@%s %llu/%llu",
931 +           myctime(source_p->localClient->firsttime), (unsigned int)(on_for / 3600),
932 +           (unsigned int)((on_for % 3600)/60), (unsigned int)(on_for % 60),
933 +           source_p->name, source_p->username, source_p->host,
934 +           source_p->localClient->send.bytes>>10,
935 +           source_p->localClient->recv.bytes>>10);
936      }
937  
938      /* As soon as a client is known to be a server of some sort
# Line 951 | Line 957 | exit_client(struct Client *source_p, str
957          Count.myserver--;
958      }
959  
954    log_user_exit(source_p);
955
960      if (!IsDead(source_p))
961      {
962        if (IsServer(source_p))
# Line 1006 | Line 1010 | exit_client(struct Client *source_p, str
1010                             source_p->name, (int)(CurrentTime - source_p->localClient->firsttime),
1011                             source_p->localClient->send.bytes >> 10,
1012                             source_p->localClient->recv.bytes >> 10);
1013 <      ilog(L_NOTICE, "%s was connected for %d seconds.  %llu/%llu sendK/recvK.",
1013 >      ilog(LOG_TYPE_IRCD, "%s was connected for %d seconds.  %llu/%llu sendK/recvK.",
1014             source_p->name, (int)(CurrentTime - source_p->localClient->firsttime),
1015             source_p->localClient->send.bytes >> 10,
1016             source_p->localClient->recv.bytes >> 10);
# Line 1089 | Line 1093 | dead_link_on_read(struct Client *client_
1093                             "Server %s closed the connection",
1094                             get_client_name(client_p, MASK_IP));
1095  
1096 <      ilog(L_NOTICE, "Server %s closed the connection",
1096 >      ilog(LOG_TYPE_IRCD, "Server %s closed the connection",
1097             get_client_name(client_p, SHOW_IP));
1098      }
1099      else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines