Make a reference to privset in Client.localClient.
This commit is contained in:
parent
665e79e999
commit
34cb09ceea
|
@ -40,6 +40,7 @@
|
|||
#include "snomask.h"
|
||||
#include "match.h"
|
||||
#include "ircd.h"
|
||||
#include "privilege.h"
|
||||
|
||||
/* other structs */
|
||||
struct Blacklist;
|
||||
|
@ -281,6 +282,8 @@ struct LocalUser
|
|||
struct ZipStats *zipstats; /* zipstats */
|
||||
uint16_t cork_count; /* used for corking/uncorking connections */
|
||||
struct ev_entry *event; /* used for associated events */
|
||||
|
||||
struct PrivilegeSet *privset; /* privset... */
|
||||
};
|
||||
|
||||
struct PreClient
|
||||
|
|
|
@ -1250,6 +1250,7 @@ oper_up(struct Client *source_p, struct oper_conf *oper_p)
|
|||
|
||||
source_p->flags2 |= oper_p->flags;
|
||||
source_p->localClient->opername = rb_strdup(oper_p->name);
|
||||
source_p->localClient->privset = privilegeset_ref(oper_p->privset);
|
||||
|
||||
rb_dlinkAddAlloc(source_p, &local_oper_list);
|
||||
rb_dlinkAddAlloc(source_p, &oper_list);
|
||||
|
|
Loading…
Reference in New Issue