]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_operlevels.cpp
Port bindings for gnutls now bind via ip:port, rather than on all ports for that...
[user/henk/code/inspircd.git] / src / modules / m_operlevels.cpp
index a12e3173049cfbe6ee458d0196a5ab9905d35779..972f7844144e599bf351037478b1e7fca9525e4e 100644 (file)
@@ -44,7 +44,7 @@ class ModuleOperLevels : 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);
                }
 
                virtual int OnKill(User* source, User* dest, const std::string &reason)
@@ -76,7 +76,7 @@ class ModuleOperLevels : public Module
                                {
                                        ServerInstance->SNO->WriteToSnoMask('A', "Oper %s (level %d) attempted to /kill a higher oper: %s (level %d): Reason: %s",source->nick,source_level,dest->nick,dest_level,reason.c_str());
                                        dest->WriteServ("NOTICE %s :Oper %s attempted to /kill you!",dest->nick,source->nick);
-                                       source->WriteServ("481 %s :Permission Denied - Oper %s is a higher level than you",source->nick,dest->nick);
+                                       source->WriteNumeric(481, "%s :Permission Denied - Oper %s is a higher level than you",source->nick,dest->nick);
                                        return 1;
                                }
                        }