]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_servprotect.cpp
Bah
[user/henk/code/inspircd.git] / src / modules / m_servprotect.cpp
index e0ea6911c3cc258873953017e842e5bfc03a713b..1dbb9384fc3ae7a427080cfea37f1f5445efce21 100644 (file)
@@ -61,7 +61,7 @@ class ModuleServProtectMode : public Module
        
        virtual Version GetVersion()
        {
-               return Version(1,1,0,0,VF_COMMON,API_VERSION);
+               return Version(1,2,0,0,VF_COMMON,API_VERSION);
        }
 
        virtual void OnWhois(User* src, User* dst)
@@ -79,7 +79,7 @@ class ModuleServProtectMode : public Module
 
                if (dst->IsModeSet('k'))
                {
-                       src->WriteServ("485 %s :You are not allowed to kill %s Services!", src->nick, ServerInstance->Config->Network);
+                       src->WriteNumeric(485, "%s :You are not allowed to kill %s Services!", src->nick, ServerInstance->Config->Network);
                        ServerInstance->SNO->WriteToSnoMask('A', std::string(src->nick)+" tried to kill service "+dst->nick+" ("+reason+")");
                        return 1;
                }