]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_blockcaps.cpp
Send module load/unload notifications so that services can learn of new features...
[user/henk/code/inspircd.git] / src / modules / m_blockcaps.cpp
index e21e1da888ad88f772c8fa9ee3454187816f9934..ade42cb4b8facbb21cf4b7b95e392481df477172 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
  * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
@@ -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_VENDOR);
        }
 };