]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_restrictchans.cpp
Break! ...no actually, take the break out :)
[user/henk/code/inspircd.git] / src / modules / m_restrictchans.cpp
index 58e935aeef5b5a7abc36e2a5120ee813dbe133b7..1838338bd66fca5d814382d2c7ae9465784644b1 100644 (file)
@@ -51,7 +51,7 @@ class ModuleRestrictChans : 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)
        {
                irc::string x = cname;
                // user is not an oper and its not in the allow list
@@ -60,7 +60,7 @@ class ModuleRestrictChans : public Module
                        // channel does not yet exist (record is null, about to be created IF we were to allow it)
                        if (!chan)
                        {
-                               user->WriteNumeric(530, "%s %s :Only IRC operators may create new channels",user->nick,cname,cname);
+                               user->WriteNumeric(530, "%s %s :Only IRC operators may create new channels",user->nick,cname);
                                return 1;
                        }
                }
@@ -73,7 +73,7 @@ class ModuleRestrictChans : public Module
        
        virtual Version GetVersion()
        {
-               return Version(1,1,0,1,VF_VENDOR,API_VERSION);
+               return Version(1,2,0,1,VF_VENDOR,API_VERSION);
        }
 };