#include "../lib/irc_string.h"
#include "../nick/nick.h"
#include "../core/hooks.h"
+#include "../lib/strlfunc.h"
#include <string.h>
#include <stdio.h>
return NULL;
for (anp=authnametablebyname[authnamehashbyname(name)];anp;anp=(authname *)anp->nextbyname)
- if (!ircd_strcmp(anp->nicks->authname, name))
+ if (!ircd_strcmp(anp->name, name))
return anp;
return NULL;
anp=newauthname();
anp->userid=userid;
+ strlcpy(anp->name, name, sizeof(anp->name));
anp->usercount=0;
anp->marker=0;
anp->flags=0;
#ifndef __AUTHEXT_H
#define __AUTHEXT_H
+#include "../irc/irc_config.h"
#include "../lib/flags.h"
#define MAXAUTHNAMEEXTS 5
struct authname *next, *nextbyname;
unsigned int namebucket;
flag_t flags;
+ char name[ACCOUNTLEN+1];
/* These are extensions only used by other modules */
void *exts[MAXAUTHNAMEEXTS];
} authname;