summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-04-23 03:21:08 +0100
committerSadie Powell <sadie@witchery.services>2025-04-23 03:21:08 +0100
commit93736776109fd28be354cfc36f9a6081d2b91670 (patch)
tree0c7a679aa2b4590575a7100c35b14f31d6e0f3f5 /modules
parentbbb65ddc33c6d1bf1f52a41619e135b9ea59c8b2 (diff)
Respect NEVEROP in chanserv/set/{founder,successor}.
Diffstat (limited to 'modules')
-rw-r--r--modules/chanserv/cs_set.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/chanserv/cs_set.cpp b/modules/chanserv/cs_set.cpp
index c77d2d675..9cc41a715 100644
--- a/modules/chanserv/cs_set.cpp
+++ b/modules/chanserv/cs_set.cpp
@@ -311,6 +311,12 @@ public:
source.Reply(NICK_X_NOT_REGISTERED, params[1].c_str());
return;
}
+ else if (na->nc->HasExt("NEVEROP"))
+ {
+ source.Reply(_("\002%s\002 does not wish to be added to channel access lists."),
+ na->nc->display.c_str());
+ return;
+ }
NickCore *nc = na->nc;
unsigned max_reg = Config->GetModule("chanserv").Get<unsigned>("maxregistered");
@@ -974,6 +980,12 @@ public:
source.Reply(NICK_X_NOT_REGISTERED, param.c_str());
return;
}
+ else if (na->nc->HasExt("NEVEROP"))
+ {
+ source.Reply(_("\002%s\002 does not wish to be added to channel access lists."),
+ na->nc->display.c_str());
+ return;
+ }
if (na->nc == ci->GetFounder())
{
source.Reply(_("%s cannot be the successor on channel %s as they are the founder."), na->nick.c_str(), ci->name.c_str());