-
- ServerInstance->Logs->Log("chanprotect", DEBUG, "qprefix is %c and aprefix is %c", QPrefix, APrefix);
-
- /* 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_q != QPrefix) && (!booting))
- {
- ServerInstance->Modes->DelMode(cf);
- delete cf;
- cf = new ChanFounder(ServerInstance, QPrefix, DeprivSelf, DeprivOthers);
- /* These wont fail, we already owned the mode characters before */
- ServerInstance->Modes->AddMode(cf);
- ServerInstance->SNO->WriteToSnoMask('A', "WARNING: +qa prefixes were enabled or disabled via a REHASH. Clients will probably need to reconnect to pick up this change.");
- }
-
- if ((old_a != APrefix) && (!booting))
- {
- ServerInstance->Modes->DelMode(cp);
- delete cp;
- cp = new ChanProtect(ServerInstance, APrefix, DeprivSelf, DeprivOthers);
- ServerInstance->Modes->AddMode(cp);
- ServerInstance->SNO->WriteToSnoMask('A', "WARNING: +qa prefixes were enabled or disabled via a REHASH. Clients will probably need to reconnect to pick up this change.");
- }