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

Comparing ircd-hybrid/trunk/src/s_user.c (file contents):
Revision 1592 by michael, Sat Oct 27 21:02:32 2012 UTC vs.
Revision 1618 by michael, Tue Oct 30 21:04:38 2012 UTC

# Line 390 | Line 390 | register_local_user(struct Client *sourc
390    if ((Count.local >= ServerInfo.max_clients + MAX_BUFFER) ||
391        (Count.local >= ServerInfo.max_clients && !IsExemptLimits(source_p)))
392    {
393 <    sendto_realops_flags(UMODE_FULL, L_ALL,
393 >    sendto_realops_flags(UMODE_FULL, L_ALL, SEND_NOTICE,
394                           "Too many clients, rejecting %s[%s].",
395                           source_p->name, source_p->host);
396      ++ServerStats.is_ref;
# Line 403 | Line 403 | register_local_user(struct Client *sourc
403    {
404      char tmpstr2[IRCD_BUFSIZE];
405  
406 <    sendto_realops_flags(UMODE_REJ, L_ALL, "Invalid username: %s (%s@%s)",
406 >    sendto_realops_flags(UMODE_REJ, L_ALL, SEND_NOTICE,
407 >                         "Invalid username: %s (%s@%s)",
408                           source_p->name, source_p->username, source_p->host);
409      ++ServerStats.is_ref;
410      snprintf(tmpstr2, sizeof(tmpstr2), "Invalid username [%s]",
# Line 421 | Line 422 | register_local_user(struct Client *sourc
422    strlcpy(source_p->id, id, sizeof(source_p->id));
423    hash_add_id(source_p);
424  
425 <  sendto_realops_flags(UMODE_CCONN, L_ALL,
425 >  sendto_realops_flags(UMODE_CCONN, L_ALL, SEND_NOTICE,
426                         "Client connecting: %s (%s@%s) [%s] {%s} [%s] <%s>",
427                         source_p->name, source_p->username, source_p->host,
428                         ConfigFileEntry.hide_spoof_ips && IsIPSpoof(source_p) ?
# Line 429 | Line 430 | register_local_user(struct Client *sourc
430                         get_client_class(source_p),
431                         source_p->info, source_p->id);
432  
433 <  sendto_realops_flags(UMODE_CCONN_FULL, L_ALL,
433 >  sendto_realops_flags(UMODE_CCONN_FULL, L_ALL, SEND_NOTICE,
434                         "CLICONN %s %s %s %s %s %s %s 0 %s",
435                         source_p->name, source_p->username, source_p->host,
436                         ConfigFileEntry.hide_spoof_ips && IsIPSpoof(source_p) ?
# Line 453 | Line 454 | register_local_user(struct Client *sourc
454      Count.max_loc = Count.local;
455  
456      if (!(Count.max_loc % 10))
457 <      sendto_realops_flags(UMODE_ALL, L_ALL, "New Max Local Clients: %d",
457 >      sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
458 >                           "New Max Local Clients: %d",
459                             Count.max_loc);
460    }
461  
# Line 509 | Line 511 | register_remote_user(struct Client *sour
511     */
512    source_p->servptr = hash_find_server(server);
513  
514 <  /* Super GhostDetect:
514 >  /*
515 >   * Super GhostDetect:
516     * If we can't find the server the user is supposed to be on,
517     * then simply blow the user away.        -Taner
518     */
519    if (source_p->servptr == NULL)
520    {
521 <    sendto_realops_flags(UMODE_ALL, L_ALL,
521 >    sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE,
522                           "No server %s for user %s[%s@%s] from %s",
523                           server, source_p->name, source_p->username,
524                           source_p->host, source_p->from->name);
# Line 528 | Line 531 | register_remote_user(struct Client *sour
531  
532    if ((target_p = source_p->servptr) && target_p->from != source_p->from)
533    {
534 <    sendto_realops_flags(UMODE_DEBUG, L_ALL,
534 >    sendto_realops_flags(UMODE_DEBUG, L_ALL, SEND_NOTICE,
535                           "Bad User [%s] :%s USER %s@%s %s, != %s[%s]",
536                           source_p->from->name, source_p->name, source_p->username,
537                           source_p->host, source_p->servptr->name,
# Line 848 | Line 851 | set_user_mode(struct Client *client_p, s
851  
852    if (IsServer(source_p))
853    {
854 <     sendto_realops_flags(UMODE_ALL, L_ADMIN, "*** Mode for User %s from %s",
854 >     sendto_realops_flags(UMODE_ALL, L_ADMIN, SEND_NOTICE,
855 >                          "*** Mode for User %s from %s",
856                            parv[1], source_p->name);
857       return;
858    }
# Line 1169 | Line 1173 | check_xline(struct Client *source_p)
1173      else
1174        reason = "No Reason";
1175  
1176 <    sendto_realops_flags(UMODE_REJ, L_ALL,
1176 >    sendto_realops_flags(UMODE_REJ, L_ALL, SEND_NOTICE,
1177                           "X-line Rejecting [%s] [%s], user %s [%s]",
1178                           source_p->info, reason,
1179                           get_client_name(source_p, HIDE_IP),
# Line 1223 | Line 1227 | oper_up(struct Client *source_p)
1227    if (!HasOFlag(source_p, OPER_FLAG_N))
1228      DelUMode(source_p, UMODE_NCHANGE);
1229  
1230 <  sendto_realops_flags(UMODE_ALL, L_ALL, "%s is now an operator",
1230 >  sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, "%s is now an operator",
1231                         get_oper_name(source_p));
1232    send_umode_out(source_p, source_p, old);
1233    sendto_one(source_p, form_str(RPL_YOUREOPER), me.name, source_p->name);

Diff Legend

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