#include "send.h"
#include "ircd.h"
#include "msg.h" /* XXX: MAXPARA */
+#include "operhash.h"
static char bandb_add_letter[LAST_BANDB_TYPE] = {
'K', 'D', 'X', 'R'
const char *suffix = "";
#endif
- rb_setenv("BANDB_DPATH", ConfigFileEntry.dpath, 1);
+ rb_setenv("BANDB_DBPATH", PKGLOCALSTATEDIR "/ban.db", 1);
if(bandb_path == NULL)
{
- rb_snprintf(fullpath, sizeof(fullpath), "%s/bandb%s", BINPATH, suffix);
+ rb_snprintf(fullpath, sizeof(fullpath), "%s/bandb%s", PKGLIBEXECDIR, suffix);
if(access(fullpath, X_OK) == -1)
{
if(access(fullpath, X_OK) == -1)
{
ilog(L_MAIN,
- "Unable to execute bandb in %s or %s/bin",
- BINPATH, ConfigFileEntry.dpath);
+ "Unable to execute bandb%s in %s or %s/bin",
+ suffix, PKGLIBEXECDIR, ConfigFileEntry.dpath);
return 0;
}
}
aconf->user = rb_strdup(parv[para++]);
aconf->host = rb_strdup(parv[para++]);
- /* We do not have the 'oper' field yet. */
- para++;
+ aconf->info.oper = operhash_add(parv[para++]);
switch (parv[0][0])
{