diff options
-rw-r--r-- | docs/modules.conf.example | 8 | ||||
-rw-r--r-- | src/modules/m_halfvoice.cpp (renamed from src/modules/m_statusprefix.cpp) | 22 |
2 files changed, 12 insertions, 18 deletions
diff --git a/docs/modules.conf.example b/docs/modules.conf.example index 4db33190d..7de56622d 100644 --- a/docs/modules.conf.example +++ b/docs/modules.conf.example @@ -822,6 +822,10 @@ #<module name="m_halfop.so"> #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# +# Status prefix: Adds the channel status mode +V +#<module name="m_halfvoice.so"> + +#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# # HELPOP module: Provides the /HELPOP command #<module name="m_helpop.so"> # @@ -1643,10 +1647,6 @@ # your configuration file! # #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# -# Status prefix: Adds the channel mode +V -#<module name="m_statusprefix.so"> - -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# # Strip colour module: Adds the channel mode +S #<module name="m_stripcolor.so"> diff --git a/src/modules/m_statusprefix.cpp b/src/modules/m_halfvoice.cpp index 5f0587ee0..93aa3c182 100644 --- a/src/modules/m_statusprefix.cpp +++ b/src/modules/m_halfvoice.cpp @@ -16,14 +16,12 @@ /* $ModDesc: Provides channel mode +V, adding the - prefix * which does nothing but serves as a status symbol. */ -#define STATUS_VALUE 1 +#define HALFVOICE_VALUE 1 -/** Abstraction of StatusPrefixBase for channel mode +a - */ -class StatusPrefix : public ModeHandler +class HalfVoiceMode : public ModeHandler { public: - StatusPrefix(Module* parent) : ModeHandler(parent, "status", 'V', PARAM_ALWAYS, MODETYPE_CHANNEL) + HalfVoiceMode(Module* parent) : ModeHandler(parent, "halfvoice", 'V', PARAM_ALWAYS, MODETYPE_CHANNEL) { list = true; prefix = 0; @@ -78,31 +76,27 @@ class StatusPrefix : public ModeHandler } }; -class ModuleStatusPrefix : public Module +class ModuleHalfVoice : public Module { - StatusPrefix mh; + HalfVoiceMode mh; public: - ModuleStatusPrefix() : mh(this) + ModuleHalfVoice() : mh(this) { } void init() { - ConfigTag* tag = ServerInstance->Config->ConfValue("statusprefix"); + ConfigTag* tag = ServerInstance->Config->ConfValue("halfvoice"); std::string pfxchar = tag->getString("prefix", "-"); mh.SetPrefix(pfxchar[0]); ServerInstance->Modules->AddService(mh); } - ~ModuleStatusPrefix() - { - } - Version GetVersion() { return Version("Provides a channel mode that does nothing but serve as a status symbol", VF_VENDOR); } }; -MODULE_INIT(ModuleStatusPrefix) +MODULE_INIT(ModuleHalfVoice) |