/* * this module aktivates the chanstats setting on all users and channels * it has no commands * load it, unload it, done :-) */ #include "module.h" class EnableChanstats : public Module { public: EnableChanstats(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, THIRD) { this->SetAuthor("Jens Voss "); this->SetVersion("1.0"); Log() << "[" << this->name << "] Starting up..."; for (nickcore_map::const_iterator it = NickCoreList->begin(), it_end = NickCoreList->end(); it != it_end; ++it) it->second->Extend("NS_STATS"); for (registered_channel_map::iterator it = RegisteredChannelList->begin(), it_end = RegisteredChannelList->end(); it != it_end; ++it) it->second->Extend("CS_STATS"); Log() << "[" << this->name << "] All done, you can unload this module now."; } }; MODULE_INIT(EnableChanstats)