]> jfr.im git - irc/quakenet/newserv.git/blame_incremental - patricianick/patricianick.h
Fix null pointer dereference in the glines module.
[irc/quakenet/newserv.git] / patricianick / patricianick.h
... / ...
CommitLineData
1#ifndef __PATRICIANICKS_H
2#define __PATRICIANICKS_H
3
4#include "../nick/nick.h"
5
6#define PATRICIANICK_HASHSIZE 5
7#define pn_getidenthash(x) ((irc_crc32i(x)) % PATRICIANICK_HASHSIZE)
8#define PATRICIANICK_MAXRESULTS 1000
9
10typedef struct patricianick_s {
11 nick *identhash[PATRICIANICK_HASHSIZE];
12} patricianick_t;
13
14extern int pnode_ext;
15extern int pnick_ext;
16
17void pn_hook_newuser(int hook, void *arg);
18void pn_hook_lostuser(int hook, void *arg);
19
20void addnicktonode(patricia_node_t *node, nick *nick);
21void deletenickfromnode(patricia_node_t *node, nick *nick);
22void freepatricianick(patricianick_t *pnp);
23#endif