Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash when combining +P with a 3rd party module, or actually
any parameter channel mode module loaded after channeldb. Reported by GaMbiTo, with help from PeGaSuS, Gottem and k4be in https://bugs.unrealircd.org/view.php?id=5669 It is not safe to call channel mode parameter functions when unloading modules. Makes sense I think. We now no longer write the db on rehash, which is something i didn't like anyway (wasted CPU cycles). The problem was that one could not just scratch the write db call, as otherwise if someone rehashes every minute would cause the db never to be saved. This is because on each rehash the event to write the db gets rescheduled to +5 minutes in the future. We now work around that in the same way as connthrottle does. Obviously it would be better to make the event system itself deal with this, but that is (way) too much for now.
- Loading branch information