/[svn]/ircd-hybrid-8/modules/m_oper.c
ViewVC logotype

Diff of /ircd-hybrid-8/modules/m_oper.c

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

revision 1288 by michael, Sun Feb 5 15:12:59 2012 UTC revision 1289 by michael, Sun Feb 5 16:09:08 2012 UTC
# Line 37  Line 37 
37  #include "packet.h"  #include "packet.h"
38    
39    
 /* find_password_conf()  
  *  
  * inputs       - name  
  *              - pointer to source_p  
  * output       - pointer to oper conf or NULL  
  * side effects - NONE  
  */  
 static struct ConfItem *  
 find_password_conf(const char *name, const struct Client *source_p)  
 {  
   return find_exact_name_conf(OPER_TYPE, source_p, name, NULL, NULL);  
 }  
40    
41  /* failed_oper_notice()  /* failed_oper_notice()
42   *   *
# Line 98  m_oper(struct Client *client_p, struct C Line 86  m_oper(struct Client *client_p, struct C
86    if (!IsFloodDone(source_p))    if (!IsFloodDone(source_p))
87      flood_endgrace(source_p);      flood_endgrace(source_p);
88    
89    if ((conf = find_password_conf(name, source_p)) == NULL)    if ((conf = find_exact_name_conf(OPER_TYPE, source_p, name, NULL, NULL)) == NULL)
90    {    {
91      sendto_one(source_p, form_str(ERR_NOOPERHOST), me.name, source_p->name);      sendto_one(source_p, form_str(ERR_NOOPERHOST), me.name, source_p->name);
92      conf = find_exact_name_conf(OPER_TYPE, NULL, name, NULL, NULL);      conf = find_exact_name_conf(OPER_TYPE, NULL, name, NULL, NULL);

Legend:
Removed from v.1288  
changed lines
  Added in v.1289

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