mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Add deprecation warnings for m_chanprotect and m_halfop, remove them from the config
Fixes issue #9
This commit is contained in:
parent
72abc79581
commit
2e14fd4485
@ -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="&"
|
||||
|
||||
# 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">
|
||||
|
@ -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");
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user