X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_servprotect.cpp;h=a5d7a82e43bc9850d737fa94b0f37046d85a744e;hb=b4599531f97a9e6207b6bb8d728d7523b6995523;hp=1226b601aacb0814e5c17fa2af6ae8b572526357;hpb=e8da9b7a266c545844bfb4a3987b7fc0b05f2cf7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_servprotect.cpp b/src/modules/m_servprotect.cpp index 1226b601a..a5d7a82e4 100644 --- a/src/modules/m_servprotect.cpp +++ b/src/modules/m_servprotect.cpp @@ -20,11 +20,15 @@ #include "inspircd.h" +#include "modules/whois.h" enum { // From AustHex. - RPL_WHOISSERVICE = 310 + RPL_WHOISSERVICE = 310, + + // From UnrealIRCd. + ERR_KILLDENY = 485 }; /** Handles user mode +k @@ -112,7 +116,7 @@ class ModuleServProtectMode : public Module, public Whois::EventListener, public if (dst->IsModeSet(bm)) { - src->WriteNumeric(485, InspIRCd::Format("You are not permitted to kill %s services!", ServerInstance->Config->Network.c_str())); + src->WriteNumeric(ERR_KILLDENY, InspIRCd::Format("You are not permitted to kill %s services!", ServerInstance->Config->Network.c_str())); ServerInstance->SNO->WriteGlobalSno('a', src->nick+" tried to kill service "+dst->nick+" ("+reason+")"); return MOD_RES_DENY; }