X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_helpop.cpp;h=4c5dc23a99f339350e0937331e23e463169681f4;hb=cb4c516ace8fef75b8a54a141c3644af9697ac0a;hp=5cd8d8ea0701f1845a3ccdc4a4b100f2f75603dd;hpb=5d474dc9fbd9bd36d0a0a8df93e1ec1e180864d7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp index 5cd8d8ea0..4c5dc23a9 100644 --- a/src/modules/m_helpop.cpp +++ b/src/modules/m_helpop.cpp @@ -13,10 +13,8 @@ #include "inspircd.h" -/* $ModDesc: /helpop Command, Works like Unreal helpop */ static std::map helpop_map; - /** Handles user mode +h */ class Helpop : public ModeHandler @@ -132,8 +130,6 @@ class ModuleHelpop : public Module void ReadConfig() { - ConfigReader MyConf; - helpop_map.clear(); ConfigTagList tags = ServerInstance->Config->ConfTags("helpop"); @@ -165,13 +161,12 @@ class ModuleHelpop : public Module } - - virtual void OnRehash(User* user) + void OnRehash(User* user) { ReadConfig(); } - virtual void OnWhois(User* src, User* dst) + void OnWhois(User* src, User* dst) { if (dst->IsModeSet('h')) { @@ -179,13 +174,9 @@ class ModuleHelpop : public Module } } - virtual ~ModuleHelpop() - { - } - - virtual Version GetVersion() + Version GetVersion() { - return Version("/helpop Command, Works like Unreal helpop", VF_VENDOR); + return Version("/help command, works like Unreal helpop", VF_VENDOR); } };