1
0
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:
Travis McArthur
2015-05-31 23:41:57 -04:00
parent adf8a61625
commit 01f997f917
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -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;
+2
View File
@@ -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"))