Add deprecation warnings for m_chanprotect and m_halfop, remove them from the config

Fixes issue #9
This commit is contained in:
attilamolnar 2012-06-07 23:08:32 +02:00 committed by Sir Poggles
parent 72abc79581
commit 2e14fd4485
3 changed files with 2 additions and 23 deletions

View File

@ -316,24 +316,6 @@
# channel is still possible.
#<module name="m_channelban.so">
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Chanprotect module: gives +q and +a channel modes
# Note that m_customprefix provides a more customizable version of this.
#<module name="m_chanprotect.so">
#<chanprotect
# qprefix: Prefix (symbol) to use for +q users.
#qprefix="~"
# aprefix: Prefix (symbol) to use for +a users.
#aprefix="&amp;"
# grantadmin/grantfounder: when set to yes, +a users will be able to
# grant +a on other users (or +q to +q). Founder can always set/unset
# admin mode.
#grantadmin="no" grantfounder="yes">
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Check module: gives /check
# Check is useful for looking up information on channels,
@ -735,11 +717,6 @@
# must be in one of your oper class blocks.
#<module name="m_globalload.so">
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Halfop module: Provides the +h (halfops) channel status mode.
# Note that m_customprefix provides a more customizable version of this.
#<module name="m_halfop.so">
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# HELPOP module: Provides the /HELPOP command
#<module name="m_helpop.so">

View File

@ -131,6 +131,7 @@ class ModuleChanProtect : public Module
void init()
{
ServerInstance->Logs->Log("m_chanprotect", DEFAULT, "m_chanprotect is deprecated as of 2.1 in favour of m_customprefix, please consider switching");
ConfigTag* tag = ServerInstance->Config->GetTag("chanprotect");
std::string qpre = tag->getString("qprefix");

View File

@ -60,6 +60,7 @@ class ModuleHalfop : public Module
void init()
{
ServerInstance->Logs->Log("m_halfop", DEFAULT, "m_halfop is deprecated as of 2.1 in favour of m_customprefix, please consider switching");
ServerInstance->Modules->AddService(mh);
}