/[svn]/ircd-hybrid/branches/8.2.x/modules/m_oper.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.2.x/modules/m_oper.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9405 by michael, Sun May 10 09:46:41 2020 UTC revision 9406 by michael, Sun May 31 07:23:05 2020 UTC
# Line 79  oper_up(struct Client *source_p, const s Line 79  oper_up(struct Client *source_p, const s
79                    RPL_WHOISOPERATOR, conf->whois);                    RPL_WHOISOPERATOR, conf->whois);
80    }    }
81    
82    ilog(LOG_TYPE_OPER, "OPER %s by %s!%s@%s", conf->name, source_p->name,    ilog(LOG_TYPE_OPER, "OPER %s by %s",
83         source_p->username, source_p->host);         conf->name, client_get_name(source_p, HIDE_IP));
84    
85    sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE, "%s is now an operator",    sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE, "%s is now an operator",
86                         get_oper_name(source_p));                         get_oper_name(source_p));
87    sendto_server(NULL, 0, 0, ":%s GLOBOPS :%s is now an operator",    sendto_server(NULL, 0, 0, ":%s GLOBOPS :%s is now an operator",
# Line 102  failed_oper_notice(struct Client *source Line 103  failed_oper_notice(struct Client *source
103  {  {
104    if (ConfigGeneral.failed_oper_notice)    if (ConfigGeneral.failed_oper_notice)
105      sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE,      sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE,
106                           "Failed OPER attempt as %s by %s (%s@%s) - %s",                           "Failed OPER attempt as %s by %s - %s",
107                           name, source_p->name, source_p->username,                           name, client_get_name(source_p, HIDE_IP), reason);
108                           source_p->host, reason);  
109      ilog(LOG_TYPE_OPER, "Failed OPER attempt as %s by %s - %s",
110    ilog(LOG_TYPE_OPER, "Failed OPER attempt as %s by %s (%s@%s) - %s",         name, client_get_name(source_p, HIDE_IP), reason);
        name, source_p->name, source_p->username,  
        source_p->host, reason);  
111  }  }
112    
113  /*! \brief OPER command handler  /*! \brief OPER command handler

Legend:
Removed from v.9405  
changed lines
  Added in v.9406

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28