From ef24271618d11dbffd941623156bfe07b06d5078 Mon Sep 17 00:00:00 2001
From: William Pitcock <nenolod@atheme.org>
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 02b39f90..6c856492 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 fa6ce1bc..01a21e87 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);