class ChanFilter : public ListModeBase
{
public:
- ChanFilter(Server* serv) : ListModeBase(serv, 'g', "End of channel spamfilter list", "941", "940", "chanfilter") { }
+ ChanFilter(Server* serv) : ListModeBase(serv, 'g', "End of channel spamfilter list", "941", "940", false, "chanfilter") { }
virtual bool ValidateParam(userrec* user, chanrec* chan, std::string &word)
{
// Create a copy of the string in irc::string
irc::string line = text.c_str();
- modelist* list = (modelist*)chan->GetExt(cf->GetInfoKey());
+ modelist* list;
+ chan->GetExt(cf->GetInfoKey(), list);
if (list)
{