From 93736776109fd28be354cfc36f9a6081d2b91670 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 23 Apr 2025 03:21:08 +0100 Subject: Respect NEVEROP in chanserv/set/{founder,successor}. --- modules/chanserv/cs_set.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'modules') 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("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()); -- cgit