/* $ModDesc: Provides support for easily creating listmodes, stores the time set, the user, and a parameter. */
+/* Updated to use the <banlist> config tag if it exists */
/* Written by Om <omster@gmail.com>, December 2005. */
/* Based on code previously written by Om - April 2005 */
/* Originally based on m_chanprotect and m_silence */
unsigned int limit;
};
-// Just defining the type we use for the excpetion list here...
+// Just defining the type we use for the exception list here...
typedef std::vector<ListItem> modelist;
typedef std::vector<ListLimit> limitlist;
Server* Srv;
ConfigReader* Conf;
public:
- ListModeBaseModule(Server* serv, char modechar, std::string eolstr, std::string lnum, std::string eolnum) : Module::Module(serv)
+ ListModeBaseModule(Server* serv, char modechar, const std::string &eolstr, const std::string &lnum, const std::string &eolnum) : Module::Module(serv)
{
Srv = serv;
Conf = new ConfigReader;
Srv->AddExtendedListMode(modechar);
}
- virtual void OnRehash(std::string param)
+ virtual void OnRehash(const std::string ¶m)
{
delete Conf;
Conf = new ConfigReader;