Heufneutje / PyHeufyBot

A modular IRC bot written in Python, using Twisted. Abandoned, most popular modules have been ported to https://github.com/DesertBot/DesertBot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reloading a module enables it tor servers it shouldn't be enabled for

Heufneutje opened this issue · comments

commented

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

commented

Or doing it in reverse, check which servers DON'T have the module enabled, and disable it for those servers after the reload.