]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_blockcaps.cpp
Fix infinite loop on alias expansion, found by Adam
[user/henk/code/inspircd.git] / src / modules / m_blockcaps.cpp
index e21e1da888ad88f772c8fa9ee3454187816f9934..076f625cebe873613f18e926e53857c8a5edc089 100644 (file)
@@ -60,7 +60,7 @@ public:
 
                        Channel* c = (Channel*)dest;
                        ModResult res;
-                       FIRST_MOD_RESULT(OnChannelRestrictionApply, res, (c->GetUser(user),c,"blockcaps"));
+                       FIRST_MOD_RESULT(OnChannelRestrictionApply, res, (user,c,"blockcaps"));
 
                        if (res == MOD_RES_ALLOW)
                                return MOD_RES_PASSTHRU;
@@ -128,7 +128,7 @@ public:
 
        virtual Version GetVersion()
        {
-               return Version("Provides support to block all-CAPS channel messages and notices", VF_COMMON|VF_VENDOR,API_VERSION);
+               return Version("Provides support to block all-CAPS channel messages and notices", VF_COMMON|VF_VENDOR);
        }
 };