0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

Make a reference to privset in Client.localClient.

This commit is contained in:
William Pitcock 2008-08-17 08:23:40 -05:00
parent 598b4cf10c
commit ef24271618
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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);