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/hs_set.cpp | |
parent | 1253c70e0682fa1490c99c3d2869049a0e3fa2e0 (diff) |
Move most of the core pseudoclient logic to modules
Diffstat (limited to 'modules/commands/hs_set.cpp')
-rw-r--r-- | modules/commands/hs_set.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/commands/hs_set.cpp b/modules/commands/hs_set.cpp index 69281b6ec..614bfc2e9 100644 --- a/modules/commands/hs_set.cpp +++ b/modules/commands/hs_set.cpp @@ -30,7 +30,7 @@ class CommandHSSet : public Command const Anope::string &nick = params[0]; - NickAlias *na = NickAlias::Find(nick); + NickServ::Nick *na = NickServ::FindNick(nick); if (na == NULL) { source.Reply(NICK_X_NOT_REGISTERED, nick.c_str()); @@ -106,14 +106,14 @@ class CommandHSSet : public Command class CommandHSSetAll : public Command { - void Sync(const NickAlias *na) + void Sync(const NickServ::Nick *na) { if (!na || !na->HasVhost()) return; - + for (unsigned i = 0; i < na->nc->aliases->size(); ++i) { - NickAlias *nick = na->nc->aliases->at(i); + NickServ::Nick *nick = na->nc->aliases->at(i); if (nick) nick->SetVhost(na->GetVhostIdent(), na->GetVhostHost(), na->GetVhostCreator()); } @@ -136,7 +136,7 @@ class CommandHSSetAll : public Command Anope::string nick = params[0]; - NickAlias *na = NickAlias::Find(nick); + NickServ::Nick *na = NickServ::FindNick(nick); if (na == NULL) { source.Reply(NICK_X_NOT_REGISTERED, nick.c_str()); |