summaryrefslogtreecommitdiff
path: root/modules/commands/ns_getpass.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-05-28 12:07:29 -0400
committerAdam <Adam@anope.org>2014-05-28 12:07:54 -0400
commitf29e1cf383529a1a29f02b0669d973f5ee0b7a66 (patch)
tree3c33db276dc9328235bbd572641521ed44458176 /modules/commands/ns_getpass.cpp
parent1253c70e0682fa1490c99c3d2869049a0e3fa2e0 (diff)
Move most of the core pseudoclient logic to modules
Diffstat (limited to 'modules/commands/ns_getpass.cpp')
-rw-r--r--modules/commands/ns_getpass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/ns_getpass.cpp b/modules/commands/ns_getpass.cpp
index c9bfc0402..344947988 100644
--- a/modules/commands/ns_getpass.cpp
+++ b/modules/commands/ns_getpass.cpp
@@ -24,9 +24,9 @@ class CommandNSGetPass : public Command
{
const Anope::string &nick = params[0];
Anope::string tmp_pass;
- const NickAlias *na;
+ const NickServ::Nick *na;
- if (!(na = NickAlias::Find(nick)))
+ if (!(na = NickServ::FindNick(nick)))
source.Reply(NICK_X_NOT_REGISTERED, nick.c_str());
else if (Config->GetModule("nickserv")->Get<bool>("secureadmins", "yes") && na->nc->IsServicesOper())
source.Reply(_("You may not get the password of other Services Operators."));