We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ba2894 commit 15549abCopy full SHA for 15549ab
modules/nickserv/ns_drop.cpp
@@ -66,6 +66,18 @@ class CommandNSDrop final
66
return;
67
}
68
69
+ // PREVENT users with NOEXPIRE from dropping their accounts -siniStar
70
+ if (na->HasExt("NS_NO_EXPIRE") && !is_mine)
71
+ {
72
+ source.Reply(_("\002%s\002 cannot be dropped. For more information, see IRC4Fun Staff."), na->nick.c_str());
73
+ return;
74
+ }
75
+ if (na->HasExt("NS_NO_EXPIRE") && is_mine)
76
77
+ source.Reply(_("\002%s\002 cannot be dropped. You will need a Services Root to drop your account for you."), na->nick.c_str());
78
79
80
+
81
auto *code = dropcode.Get(na);
82
if (params.size() < 2 || ((!code || !code->equals_ci(params[1])) && (!source.HasPriv("nickserv/drop/override") || params[1] != "OVERRIDE")))
83
{
0 commit comments