]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_permchannels.cpp
Remove m_silence: this is 1.2 only. m_silence_ext is a fully backwards compatible...
[user/henk/code/inspircd.git] / src / modules / m_permchannels.cpp
index 361e284110c01705766ff6ebffc7b1d1f1da8a5e..9ead505354e7907a8e10a3ccf226f1e49bfa853a 100644 (file)
@@ -23,7 +23,7 @@ class PermChannel : public ModeHandler
  public:
        PermChannel(InspIRCd* Instance) : ModeHandler(Instance, 'P', 0, 0, false, MODETYPE_CHANNEL, false) { }
 
-       ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding)
+       ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding, bool)
        {
                if (adding)
                {
@@ -54,7 +54,7 @@ public:
        ModulePermanentChannels(InspIRCd* Me) : Module(Me)
        {
                p = new PermChannel(ServerInstance);
-               if (!ServerInstance->AddMode(p))
+               if (!ServerInstance->Modes->AddMode(p))
                {
                        delete p;
                        throw ModuleException("Could not add new modes!");
@@ -71,7 +71,7 @@ public:
 
        virtual Version GetVersion()
        {
-               return Version(1,1,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
+               return Version(1,2,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
        }
 
        virtual int OnChannelPreDelete(Channel *c)