]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_regonlycreate.cpp
Add support for blacklists and whitelists, just http password auth to go (the most...
[user/henk/code/inspircd.git] / src / modules / m_regonlycreate.cpp
index 5391791d3f36f921eaf7c541fcca71a1a741c942..eea6b7876f92ecefc1e013e7fab4eb0c8810315e 100644 (file)
@@ -26,7 +26,7 @@ class ModuleRegOnlyCreate : public Module
        }
 
 
-       virtual int OnUserPreJoin(User* user, Channel* chan, const char* cname, std::string &privs)
+       virtual int OnUserPreJoin(User* user, Channel* chan, const char* cname, std::string &privs, const std::string &keygiven)
        {
                if (chan)
                        return 0;
@@ -36,7 +36,7 @@ class ModuleRegOnlyCreate : public Module
 
                if ((!user->IsModeSet('r')) && (!user->GetExt("accountname")))
                {
-                       user->WriteServ("482 %s %s :You must have a registered nickname to create a new channel", user->nick, cname);
+                       user->WriteNumeric(482, "%s %s :You must have a registered nickname to create a new channel", user->nick, cname);
                        return 1;
                }
 
@@ -49,7 +49,7 @@ class ModuleRegOnlyCreate : public Module
        
        virtual Version GetVersion()
        {
-               return Version(1, 1, 0, 0, VF_VENDOR, API_VERSION);
+               return Version(1, 2, 0, 0, VF_VENDOR, API_VERSION);
        }
 };