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_group.cpp | |
parent | 1253c70e0682fa1490c99c3d2869049a0e3fa2e0 (diff) |
Move most of the core pseudoclient logic to modules
Diffstat (limited to 'modules/commands/hs_group.cpp')
-rw-r--r-- | modules/commands/hs_group.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/commands/hs_group.cpp b/modules/commands/hs_group.cpp index eb1c6d299..47e4c03de 100644 --- a/modules/commands/hs_group.cpp +++ b/modules/commands/hs_group.cpp @@ -17,7 +17,7 @@ class CommandHSGroup : public Command bool setting; public: - void Sync(const NickAlias *na) + void Sync(const NickServ::Nick *na) { if (setting) return; @@ -25,10 +25,10 @@ class CommandHSGroup : public Command if (!na || !na->HasVhost()) return; - setting = true; + setting = true; 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()); @@ -51,7 +51,7 @@ class CommandHSGroup : public Command return; } - NickAlias *na = NickAlias::Find(source.GetNick()); + NickServ::Nick *na = NickServ::FindNick(source.GetNick()); if (na && source.GetAccount() == na->nc && na->HasVhost()) { this->Sync(na); @@ -93,7 +93,7 @@ class HSGroup : public Module { } - void OnSetVhost(NickAlias *na) override + void OnSetVhost(NickServ::Nick *na) override { if (!synconset) return; @@ -101,7 +101,7 @@ class HSGroup : public Module commandhsgroup.Sync(na); } - void OnNickGroup(User *u, NickAlias *na) override + void OnNickGroup(User *u, NickServ::Nick *na) override { if (!syncongroup) return; |