From c4705deb9fb737708dc26e86508aa49255cf6b82 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 9 Feb 2010 02:22:44 +0000 Subject: [PATCH] half-voice is a better name than status prefix git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12406 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/modules.conf.example | 8 +++---- .../{m_statusprefix.cpp => m_halfvoice.cpp} | 22 +++++++------------ 2 files changed, 12 insertions(+), 18 deletions(-) rename src/modules/{m_statusprefix.cpp => m_halfvoice.cpp} (82%) 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 @@ -821,6 +821,10 @@ # Halfop module: Provides the +h (halfops) channel status mode. # +#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# +# Status prefix: Adds the channel status mode +V +# + #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# # HELPOP module: Provides the /HELPOP command # @@ -1642,10 +1646,6 @@ # server to server traffic, you MUST load it before m_spanningtree in # # your configuration file! # -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# -# Status prefix: Adds the channel mode +V -# - #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-# # Strip colour module: Adds the channel mode +S # diff --git a/src/modules/m_statusprefix.cpp b/src/modules/m_halfvoice.cpp similarity index 82% rename from src/modules/m_statusprefix.cpp rename to 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) -- 2.39.5