diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-09 02:22:44 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-09 02:22:44 +0000 |
commit | c4705deb9fb737708dc26e86508aa49255cf6b82 (patch) | |
tree | 6b5ae6d4723322837d40019b146c0aee8f342e4c /src | |
parent | 252821272458714000f772a03770e56bc6ebf4bb (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_halfvoice.cpp (renamed from src/modules/m_statusprefix.cpp) | 22 |
1 files changed, 8 insertions, 14 deletions
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) |