]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_redirect.cpp
Initialise SSL session pointer to NULL to prevent a potentially unsafe comparison...
[user/henk/code/inspircd.git] / src / modules / m_redirect.cpp
index 8b088af8ea1631f8e735fadfcb0bf24308e3f92f..3ed3a0791ce3ab134b40b3ec57dcbfaa50c0ba4c 100644 (file)
@@ -116,9 +116,9 @@ class ModuleRedirect : public Module
        {
                if (chan)
                {
-                       if (chan->IsModeSet('L') && chan->limit)
+                       if (chan->IsModeSet('L') && chan->modes[CM_LIMIT])
                        {
-                               if (chan->GetUserCounter() >= chan->limit)
+                               if (chan->GetUserCounter() >= atoi(chan->GetModeParameter('l').c_str()))
                                {
                                        std::string channel = chan->GetModeParameter('L');
 
@@ -148,7 +148,7 @@ class ModuleRedirect : public Module
 
        virtual Version GetVersion()
        {
-               return Version(1, 2, 0, 0, VF_COMMON | VF_VENDOR, API_VERSION);
+               return Version("$Id$", VF_COMMON | VF_VENDOR, API_VERSION);
        }
 };