From 01f997f91791e186d6ea52f2ef72d5741b3fcf3c Mon Sep 17 00:00:00 2001 From: Travis McArthur Date: Sun, 31 May 2015 23:41:57 -0400 Subject: [PATCH] Allow opers to have oper-class --- include/struct.h | 1 + src/s_conf.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/struct.h b/include/struct.h index 5b019a6ba..8c6e0022c 100644 --- a/include/struct.h +++ b/include/struct.h @@ -1251,6 +1251,7 @@ struct _configitem_oper { ConfigFlag flag; char *name, *swhois, *snomask; anAuthStruct *auth; + char *operclass; ConfigItem_class *class; ConfigItem *from; unsigned long modes, require_modes; diff --git a/src/s_conf.c b/src/s_conf.c index e61eacf3a..b3bd7d91d 100644 --- a/src/s_conf.c +++ b/src/s_conf.c @@ -3552,6 +3552,8 @@ int _conf_oper(ConfigFile *conf, ConfigEntry *ce) for (cep = ce->ce_entries; cep; cep = cep->ce_next) { + if (!strcmp(cep->ce_varname, "operclass")) + oper->operclass = strdup(cep->ce_vardata); if (!strcmp(cep->ce_varname, "password")) oper->auth = Auth_ConvertConf2AuthStruct(cep); else if (!strcmp(cep->ce_varname, "class"))