]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_regonlycreate.cpp
Of course, it DOES help to actually initialise the Mutex objects, and delete them...
[user/henk/code/inspircd.git] / src / modules / m_regonlycreate.cpp
index 9be3e14006ed7054868e5273f833348e310a57be..a7d3cea45ad444120cd7d23aa90275c44b51f23c 100644 (file)
@@ -36,7 +36,8 @@ class ModuleRegOnlyCreate : public Module
 
                if ((!user->IsModeSet('r')) && (!user->GetExt("accountname")))
                {
-                       user->WriteNumeric(482, "%s %s :You must have a registered nickname to create a new channel", user->nick.c_str(), cname);
+                       // XXX. there may be a better numeric for this..
+                       user->WriteNumeric(ERR_CHANOPRIVSNEEDED, "%s %s :You must have a registered nickname to create a new channel", user->nick.c_str(), cname);
                        return 1;
                }
 
@@ -49,7 +50,7 @@ class ModuleRegOnlyCreate : public Module
 
        virtual Version GetVersion()
        {
-               return Version(1, 2, 0, 0, VF_VENDOR, API_VERSION);
+               return Version("$Id$", VF_VENDOR, API_VERSION);
        }
 };