+ DeprivSelf = Conf.ReadFlag("options","deprotectself",0);
+ DeprivOthers = Conf.ReadFlag("options","deprotectothers",0);
+
+ /* Did the user change the QA prefixes on the fly?
+ * If so, remove all instances of the mode, and reinit
+ * the module with prefixes enabled.
+ */
+ if ((old_qa != QAPrefixes) && (!booting))
+ {
+ ServerInstance->Modes->DelMode(cp);
+ ServerInstance->Modes->DelMode(cf);
+ DELETE(cp);
+ DELETE(cf);
+ cp = new ChanProtect(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers);
+ cf = new ChanFounder(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers);
+ /* These wont fail, we already owned the mode characters before */
+ ServerInstance->AddMode(cp, 'a');
+ ServerInstance->AddMode(cf, 'q');
+ ServerInstance->WriteOpers("*** WARNING: +qa prefixes were enabled or disabled via a REHASH. Clients will probably need to reconnect to pick up this change.");
+ }