diff options
author | Adam <Adam@anope.org> | 2014-05-28 12:07:29 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-05-28 12:07:54 -0400 |
commit | f29e1cf383529a1a29f02b0669d973f5ee0b7a66 (patch) | |
tree | 3c33db276dc9328235bbd572641521ed44458176 /modules/commands/ns_access.cpp | |
parent | 1253c70e0682fa1490c99c3d2869049a0e3fa2e0 (diff) |
Move most of the core pseudoclient logic to modules
Diffstat (limited to 'modules/commands/ns_access.cpp')
-rw-r--r-- | modules/commands/ns_access.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/commands/ns_access.cpp b/modules/commands/ns_access.cpp index 1df0bbe0e..e15f2abfd 100644 --- a/modules/commands/ns_access.cpp +++ b/modules/commands/ns_access.cpp @@ -15,7 +15,7 @@ class CommandNSAccess : public Command { private: - void DoAdd(CommandSource &source, NickCore *nc, const Anope::string &mask) + void DoAdd(CommandSource &source, NickServ::Account *nc, const Anope::string &mask) { if (mask.empty()) { @@ -48,7 +48,7 @@ class CommandNSAccess : public Command return; } - void DoDel(CommandSource &source, NickCore *nc, const Anope::string &mask) + void DoDel(CommandSource &source, NickServ::Account *nc, const Anope::string &mask) { if (mask.empty()) { @@ -75,7 +75,7 @@ class CommandNSAccess : public Command return; } - void DoList(CommandSource &source, NickCore *nc, const Anope::string &mask) + void DoList(CommandSource &source, NickServ::Account *nc, const Anope::string &mask) { unsigned i, end; @@ -118,10 +118,10 @@ class CommandNSAccess : public Command mask = params.size() > 1 ? params[params.size() - 1] : ""; } - NickCore *nc; + NickServ::Account *nc; if (!nick.empty()) { - const NickAlias *na = NickAlias::Find(nick); + const NickServ::Nick *na = NickServ::FindNick(nick); if (na == NULL) { source.Reply(NICK_X_NOT_REGISTERED, nick.c_str()); @@ -199,7 +199,7 @@ class NSAccess : public Module { } - void OnNickRegister(User *u, NickAlias *na) override + void OnNickRegister(User *u, NickServ::Nick *na) override { if (u && Config->GetModule(this)->Get<bool>("addaccessonreg")) na->nc->AddAccess(u->Mask()); |