summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)