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/cs_status.cpp | |
parent | 1253c70e0682fa1490c99c3d2869049a0e3fa2e0 (diff) |
Move most of the core pseudoclient logic to modules
Diffstat (limited to 'modules/commands/cs_status.cpp')
-rw-r--r-- | modules/commands/cs_status.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/commands/cs_status.cpp b/modules/commands/cs_status.cpp index bd707d537..7b7415fdb 100644 --- a/modules/commands/cs_status.cpp +++ b/modules/commands/cs_status.cpp @@ -10,6 +10,7 @@ */ #include "module.h" +#include "modules/cs_akick.h" class CommandCSStatus : public Command { @@ -24,7 +25,7 @@ public: { const Anope::string &channel = params[0]; - ChannelInfo *ci = ChannelInfo::Find(channel); + ChanServ::Channel *ci = ChanServ::Find(channel); if (ci == NULL) source.Reply(CHAN_X_NOT_REGISTERED, channel.c_str()); else if (!source.AccessFor(ci).HasPriv("ACCESS_CHANGE") && !source.HasPriv("chanserv/auspex")) @@ -35,14 +36,14 @@ public: if (params.size() > 1) nick = params[1]; - AccessGroup ag; + ChanServ::AccessGroup ag; User *u = User::Find(nick, true); - NickAlias *na = NULL; + NickServ::Nick *na = NULL; if (u != NULL) ag = ci->AccessFor(u); else { - na = NickAlias::Find(nick); + na = NickServ::FindNick(nick); if (na != NULL) ag = ci->AccessFor(na->nc); } @@ -59,7 +60,7 @@ public: for (unsigned i = 0; i < ag.size(); ++i) { - ChanAccess *acc = ag[i]; + ChanServ::ChanAccess *acc = ag[i]; source.Reply(_("\002%s\002 matches access entry %s, which has privilege %s."), nick.c_str(), acc->mask.c_str(), acc->AccessSerialize().c_str()); } |