mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Include ADMIN and OPER in the default for <shun:enabledcmds>.
This commit is contained in:
parent
5fff3610d5
commit
92732be632
@ -2109,7 +2109,7 @@
|
||||
# You can optionally let the user know that their command was blocked.
|
||||
#
|
||||
# You may also let SHUN affect opers (defaults to no).
|
||||
#<shun enabledcommands="ADMIN PING PONG QUIT PART JOIN" notifyuser="yes" affectopers="no">
|
||||
#<shun enabledcommands="ADMIN OPER PING PONG QUIT PART JOIN" notifyuser="yes" affectopers="no">
|
||||
|
||||
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
|
||||
# SSL mode module: Adds support for SSL-only channels via the '+z'
|
||||
|
@ -196,7 +196,7 @@ class ModuleShun : public Module, public Stats::EventListener
|
||||
ConfigTag* tag = ServerInstance->Config->ConfValue("shun");
|
||||
|
||||
ShunEnabledCommands.clear();
|
||||
irc::spacesepstream enabledcmds(tag->getString("enabledcommands", "PING PONG QUIT", 1));
|
||||
irc::spacesepstream enabledcmds(tag->getString("enabledcommands", "ADMIN OPER PING PONG QUIT", 1));
|
||||
for (std::string enabledcmd; enabledcmds.GetToken(enabledcmd); )
|
||||
{
|
||||
std::transform(enabledcmd.begin(), enabledcmd.end(), enabledcmd.begin(), ::toupper);
|
||||
|
Loading…
x
Reference in New Issue
Block a user