tc = MyMalloc(sizeof(struct TopConf));
- DupString(tc->tc_name, name);
+ tc->tc_name = name;
tc->tc_sfunc = sfunc;
tc->tc_efunc = efunc;
tc->tc_entries = items;
return -1;
dlinkDestroy(ptr, &conf_items);
- MyFree(tc->tc_name);
MyFree(tc);
return 0;
{"admin", OPER_ADMIN },
{"hidden_admin", OPER_HADMIN },
{"xline", OPER_XLINE },
+ {"resv", OPER_RESV },
{"operwall", OPER_OPERWALL },
{"oper_spy", OPER_SPY },
{"hidden_oper", OPER_INVIS },
}
yy_oper = make_oper_conf();
- yy_oper->flags |= OPER_ENCRYPTED|OPER_OPERWALL|OPER_REMOTEBAN;
+ yy_oper->flags |= OPER_ENCRYPTED|OPER_RESV|OPER_OPERWALL|OPER_REMOTEBAN;
return 0;
}
yy_tmpoper->rsa_pubkey =
(RSA *) PEM_read_bio_RSA_PUBKEY(file, NULL, 0, NULL);
- BIO_set_close(file, BIO_CLOSE);
+ (void)BIO_set_close(file, BIO_CLOSE);
BIO_free(file);
if(yy_tmpoper->rsa_pubkey == NULL)
}
if (!alias_dict)
- alias_dict = irc_dictionary_create(alias_dict);
+ alias_dict = irc_dictionary_create(strcasecmp);
irc_dictionary_add(alias_dict, yy_alias->name, yy_alias);
cf = MyMalloc(sizeof(struct ConfEntry));
- DupString(cf->cf_name, name);
+ cf->cf_name = name;
cf->cf_type = type;
cf->cf_func = func;
cf->cf_arg = NULL;