/* $ModDesc: Only opers may create new channels if this module is loaded */
-Server *Srv;
-
class ModuleRestrictChans : public Module
{
+ Server* Srv;
std::map<irc::string,int> allowchans;
irc::string channel = txt.c_str();
allowchans[channel] = 1;
}
- delete MyConf;
+ DELETE(MyConf);
}
public:
ReadConfig();
}
- virtual void OnRehash(std::string parameter)
+ virtual void OnRehash(const std::string ¶meter)
{
ReadConfig();
}