summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-09 02:22:44 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-09 02:22:44 +0000
commitc4705deb9fb737708dc26e86508aa49255cf6b82 (patch)
tree6b5ae6d4723322837d40019b146c0aee8f342e4c
parent252821272458714000f772a03770e56bc6ebf4bb (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
-rw-r--r--docs/modules.conf.example8
-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)