We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e3be20 commit 2b78721Copy full SHA for 2b78721
modules/commands/ns_resetpass.cpp
@@ -29,6 +29,8 @@ class CommandNSResetPass : public Command
29
30
if (!(na = NickAlias::Find(params[0])))
31
source.Reply(NICK_X_NOT_REGISTERED, params[0].c_str());
32
+ else if (na->nc->HasExt("NS_SUSPENDED"))
33
+ source.Reply(NICK_X_SUSPENDED, na->nc->display.c_str());
34
else if (!na->nc->email.equals_ci(params[1]))
35
source.Reply(_("Incorrect email address."));
36
else
@@ -89,6 +91,12 @@ class NSResetPass : public Module
89
91
if (na && ri)
90
92
{
93
NickCore *nc = na->nc;
94
+ if (nc->HasExt("NS_SUSPENDED"))
95
+ {
96
+ source.Reply(NICK_X_SUSPENDED, nc->display.c_str());
97
+ return EVENT_STOP;
98
+ }
99
+
100
const Anope::string &passcode = params[1];
101
if (ri->time < Anope::CurTime - 3600)
102
0 commit comments