*/
-/* $ModDesc: Provides the /HELPOP command for useful information */
-
#include "inspircd.h"
static std::map<irc::string, std::string> helpop_map;
void init() CXX11_OVERRIDE
{
- ReadConfig();
ServerInstance->Modules->AddService(ho);
ServerInstance->Modules->AddService(cmd);
- Implementation eventlist[] = { I_OnRehash, I_OnWhois };
- ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
}
- void ReadConfig()
+ void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
{
helpop_map.clear();
}
- void OnRehash(User* user) CXX11_OVERRIDE
- {
- ReadConfig();
- }
-
void OnWhois(User* src, User* dst) CXX11_OVERRIDE
{
if (dst->IsModeSet(ho))