mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-05 21:13:12 +02:00
Allow opers to have oper-class
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user