summaryrefslogtreecommitdiff
path: root/modules/m_oper.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-11-04 15:37:10 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-11-04 15:37:10 +0000
commit90aeacbf12d63dcd628caed461bd744639603d76 (patch)
tree5eb5c2aa3fd576ac33d84d2911482a3f200c1bea /modules/m_oper.c
parent8daa0e2a6fe61e95dc2dd145ebbdb2b05c097196 (diff)
- Initial rewrite of the configuration subsystem
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1632 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/m_oper.c')
-rw-r--r--modules/m_oper.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/modules/m_oper.c b/modules/m_oper.c
index d58c11b..9aef1bc 100644
--- a/modules/m_oper.c
+++ b/modules/m_oper.c
@@ -71,8 +71,7 @@ static void
m_oper(struct Client *client_p, struct Client *source_p,
int parc, char *parv[])
{
- struct ConfItem *conf;
- struct AccessItem *aconf=NULL;
+ struct MaskItem *conf = NULL;
const char *name = parv[1];
const char *password = parv[2];
@@ -87,18 +86,16 @@ m_oper(struct Client *client_p, struct Client *source_p,
if (!IsFloodDone(source_p))
flood_endgrace(source_p);
- if ((conf = find_exact_name_conf(OPER_TYPE, source_p, name, NULL, NULL)) == NULL)
+ if ((conf = find_exact_name_conf(CONF_OPER, source_p, name, NULL, NULL)) == NULL)
{
sendto_one(source_p, form_str(ERR_NOOPERHOST), me.name, source_p->name);
- conf = find_exact_name_conf(OPER_TYPE, NULL, name, NULL, NULL);
+ conf = find_exact_name_conf(CONF_OPER, NULL, name, NULL, NULL);
failed_oper_notice(source_p, name, (conf != NULL) ?
"host mismatch" : "no oper {} block");
return;
}
- aconf = map_to_conf(conf);
-
- if (match_conf_password(password, aconf))
+ if (match_conf_password(password, conf))
{
if (attach_conf(source_p, conf) != 0)
{