X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_banexception.cpp;h=ef8dc4d9166ac6e05bf8f8b0847a21234a9b29fe;hb=2c6c072c1f5f19d1471feb43fa94bba0030e5fb6;hp=062194d76b4935a85cdd54af03c6e50a2c7b18f8;hpb=f16ef27e0e5df0249ecb38f7adf76735a550ad0a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp index 062194d76..ef8dc4d91 100644 --- a/src/modules/m_banexception.cpp +++ b/src/modules/m_banexception.cpp @@ -30,10 +30,12 @@ class ModuleBanException : public Module Server* Srv; public: - ModuleBanException(Server* serv) : Module(serv) + ModuleBanException(Server* serv) + : Module::Module(serv) { be = new BanException(serv); Srv = serv; + Srv->AddMode(be, 'e'); } virtual void Implements(char* List) @@ -52,7 +54,8 @@ public: { if(chan != NULL) { - modelist* list = (modelist*)chan->GetExt(be->GetInfoKey()); + modelist* list; + chan->GetExt(be->GetInfoKey(), list); Srv->Log(DEBUG, std::string(user->nick)+" is trying to join "+std::string(chan->name)+", checking for ban exceptions"); if(list)