diff options
author | Adam <Adam@anope.org> | 2014-11-24 14:27:23 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-11-24 14:27:23 -0500 |
commit | 42238034490fb5479d787bd1695750387d508200 (patch) | |
tree | c93c62e0e1c936e656ae5b9ee1b62380ce2a194c /modules/commands/cs_status.cpp | |
parent | d492923610d9c9146b2a2b63de38deab2cfd4ca7 (diff) |
Rewrite serializable to have field level granularity
Represent serializable objects in a digraph, and as a result made most
object relationships implicitly defined, and use the graph to trace
references between objects to determine relationships. Edges may
also be marked as having a dependency of the object they point to,
which allows for automatic cleanup and deletion of most objects when
no longer needed.
Additionally, this allows not having to require in-memory copies of
everything when using external databases. db_sql has been rewritten
for this and now always requires a database to function. db_sql with
MySQL now requires InnoDB to make use of transactions and foreign
key constraints.
Diffstat (limited to 'modules/commands/cs_status.cpp')
-rw-r--r-- | modules/commands/cs_status.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/modules/commands/cs_status.cpp b/modules/commands/cs_status.cpp index aa8eb701d..35676fa53 100644 --- a/modules/commands/cs_status.cpp +++ b/modules/commands/cs_status.cpp @@ -34,7 +34,7 @@ public: if (!source.AccessFor(ci).HasPriv("ACCESS_CHANGE") && !source.HasPriv("chanserv/auspex")) { - source.Reply(_("Access denied. You do not have privilege \002{0}\002 on \002{1}\002."), "ACCESS_CHANGE", ci->name); + source.Reply(_("Access denied. You do not have privilege \002{0}\002 on \002{1}\002."), "ACCESS_CHANGE", ci->GetName()); return; } @@ -51,18 +51,18 @@ public: { na = NickServ::FindNick(nick); if (na != NULL) - ag = ci->AccessFor(na->nc); + ag = ci->AccessFor(na->GetAccount()); } if (ag.super_admin) source.Reply(_("\002{0}\002 is a super administrator."), nick); else if (ag.founder) - source.Reply(_("\002{0}\002 is the founder of \002{1}\002."), nick, ci->name); + source.Reply(_("\002{0}\002 is the founder of \002{1}\002."), nick, ci->GetName()); else if (ag.empty()) - source.Reply(_("\002{0}\002 has no access on \002{1}\002."), nick, ci->name); + source.Reply(_("\002{0}\002 has no access on \002{1}\002."), nick, ci->GetName()); else { - source.Reply(_("Access for \002{0}\002 on \002{1}\002:"), nick, ci->name); + source.Reply(_("Access for \002{0}\002 on \002{1}\002:"), nick, ci->GetName()); for (unsigned i = 0; i < ag.size(); ++i) { @@ -74,18 +74,18 @@ public: for (unsigned j = 0, end = ci->GetAkickCount(); j < end; ++j) { - AutoKick *autokick = ci->GetAkick(j); + AutoKick *ak = ci->GetAkick(j); - if (autokick->nc) + if (ak->GetAccount()) { - if (na && *autokick->nc == na->nc) - source.Reply(_("\002{0}\002 is on the auto kick list of \002{1}\002 ({2})."), na->nc->display, ci->name, autokick->reason); + if (na && ak->GetAccount() == na->GetAccount()) + source.Reply(_("\002{0}\002 is on the auto kick list of \002{1}\002 ({2})."), na->GetAccount()->GetDisplay(), ci->GetName(), ak->GetReason()); } else if (u != NULL) { - Entry akick_mask("", autokick->mask); + Entry akick_mask("", ak->GetMask()); if (akick_mask.Matches(u)) - source.Reply(_("\002{0}\002 matches auto kick entry \002{1}\002 on \002{2}\002 ({3})."), u->nick, autokick->mask, ci->name, autokick->reason); + source.Reply(_("\002{0}\002 matches auto kick entry \002{1}\002 on \002{2}\002 ({3})."), u->nick, ak->GetMask(), ci->GetName(), ak->GetReason()); } } } |