]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Make a reference to privset in Client.localClient.
authorWilliam Pitcock <redacted>
Sun, 17 Aug 2008 13:23:40 +0000 (08:23 -0500)
committerWilliam Pitcock <redacted>
Sun, 17 Aug 2008 13:23:40 +0000 (08:23 -0500)
include/client.h
src/s_user.c

index 02b39f908139b28c4d2c3939648c56e7305a415b..6c856492841c380fb0a5359d3590b54f3ae424ba 100644 (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
index fa6ce1bcb2a6a46e47ddd8f387ff6645d0d4d6e3..01a21e879a8b1d36e73b23442199eadb224273d3 100644 (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);