From 42238034490fb5479d787bd1695750387d508200 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 24 Nov 2014 14:27:23 -0500 Subject: 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. --- modules/pseudoclients/global.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/pseudoclients/global.cpp') diff --git a/modules/pseudoclients/global.cpp b/modules/pseudoclients/global.cpp index 42b629af6..11dc87146 100644 --- a/modules/pseudoclients/global.cpp +++ b/modules/pseudoclients/global.cpp @@ -20,9 +20,9 @@ class GlobalCore : public Module , public EventHook , public EventHook { - Reference Global; + Reference Global; - void ServerGlobal(BotInfo *sender, Server *s, const Anope::string &message) + void ServerGlobal(ServiceBot *sender, Server *s, const Anope::string &message) { if (s != Me && !s->IsJuped()) s->Notice(sender, message); @@ -40,7 +40,7 @@ class GlobalCore : public Module { } - void SendGlobal(BotInfo *sender, const Anope::string &source, const Anope::string &message) override + void SendGlobal(ServiceBot *sender, const Anope::string &source, const Anope::string &message) override { if (Me->GetLinks().empty()) return; @@ -66,7 +66,7 @@ class GlobalCore : public Module if (glnick.empty()) throw ConfigException(Module::name + ": must be defined"); - BotInfo *bi = BotInfo::Find(glnick, true); + ServiceBot *bi = ServiceBot::Find(glnick, true); if (!bi) throw ConfigException(Module::name + ": no bot named " + glnick); -- cgit