]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanprotect.cpp
Tons of module versionflags stuff, and checks for it in /UNLOADMODULE
[user/henk/code/inspircd.git] / src / modules / m_chanprotect.cpp
index 698e2fbc173e45e864d5c4feece9661cba679162..65a7b0e84c55fad5b307ee00dc191aff69eaae3a 100644 (file)
@@ -65,7 +65,8 @@ class ModuleChanProtect : public Module
                         }
                         temp2 = temp2 + temp1 + " ";
                 }
-                output = temp2.substr(0,temp2.length()-1);
+               if (temp2.length())
+                       output = temp2.substr(0,temp2.length()-1);
         }
 
        virtual void OnUserPart(userrec* user, chanrec* channel)
@@ -287,7 +288,7 @@ class ModuleChanProtect : public Module
        
        virtual Version GetVersion()
        {
-               return Version(1,0,0,0);
+               return Version(1,0,0,0,VF_STATIC|VF_VENDOR);
        }
        
        virtual string_list OnChannelSync(chanrec* chan)