class InviteException : public ListModeBase
{
public:
- InviteException(Server* serv) : ListModeBase(serv, 'I', "End of Channel Invite Exception List", "346", "347") { }
+ InviteException(Server* serv) : ListModeBase(serv, 'I', "End of Channel Invite Exception List", "346", "347", true) { }
};
class ModuleInviteException : public Module
public:
ModuleInviteException(Server* serv) : Module(serv)
{
- ie = new BanException(serv);
+ ie = new InviteException(serv);
Srv = serv;
+ Srv->AddMode(ie, 'I');
}
virtual void Implements(char* List)
{
if(chan != NULL)
{
- modelist* list = (modelist*)chan->GetExt(ie->GetInfoKey());
+ modelist* list;
+ chan->GetExt(ie->GetInfoKey(), list);
Srv->Log(DEBUG, std::string(user->nick)+" is trying to join "+std::string(chan->name)+", checking for invite exceptions");
if (list)
{