]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_restrictchans.cpp
Eventlist one item too short, makes this module not publish its 005 feature
[user/henk/code/inspircd.git] / src / modules / m_restrictchans.cpp
index b2c4273e3abe04530322fdc1d75ac739393e67c8..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;
                        }
                }