From 34cb09ceeacbf1fbffbe7d06e3364e56f4cc269b Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 17 Aug 2008 08:23:40 -0500 Subject: [PATCH] Make a reference to privset in Client.localClient. --- include/client.h | 3 +++ src/s_user.c | 1 + 2 files changed, 4 insertions(+) diff --git a/include/client.h b/include/client.h index 02b39f9..6c85649 100644 --- a/include/client.h +++ b/include/client.h @@ -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 diff --git a/src/s_user.c b/src/s_user.c index fa6ce1b..01a21e8 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -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);