]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
If a privset is removed from ircd.conf, wipe its privs.
authorJilles Tjoelker <redacted>
Sun, 18 Jan 2009 00:39:41 +0000 (01:39 +0100)
committerJilles Tjoelker <redacted>
Sun, 18 Jan 2009 00:39:41 +0000 (01:39 +0100)
(Privsets continue to exist as long as they are referenced.)

src/privilege.c

index e1f2507615092beb8edcbc265bd3452796bf17e9..6b2c8b703bc4af872f341796bdeff02e4329a274 100644 (file)
@@ -173,6 +173,8 @@ privilegeset_mark_all_illegal(void)
                        continue;
 
                set->status |= CONF_ILLEGAL;
+               rb_free(set->privs);
+               set->privs = rb_strdup("");
                /* but do not free it yet */
        }
 }