Reloading a module enables it tor servers it shouldn't be enabled for
Heufneutje opened this issue · comments
You could solve this by checking which servers have the module enabled before unloading it, and then explicitly only enabling it for those servers after you load it back in. I did something very similar with Hubbot before I nuked his shoddy multi-server implementation
https://github.com/HubbeKing/Hubbot_Twisted/blob/80467e4e9f9a81a39a54fd7e9b16c6ed6b6ee601/hubbot/bothandler.py#L140
Or doing it in reverse, check which servers DON'T have the module enabled, and disable it for those servers after the reload.