]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_banexception.cpp
Fix test client error cheecking on result types
[user/henk/code/inspircd.git] / src / modules / m_banexception.cpp
index ba3a1b38ad43922fe1bf70453b48da35fd12a1ae..ef8dc4d9166ac6e05bf8f8b0847a21234a9b29fe 100644 (file)
@@ -54,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)