diff options
Diffstat (limited to 'src/bots.cpp')
-rw-r--r-- | src/bots.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index 332bd151d..37babbb5f 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -32,6 +32,8 @@ BotInfo::BotInfo(const Anope::string &nnick, const Anope::string &nuser, const A (*BotListByNick)[this->nick] = this; if (!this->uid.empty()) (*BotListByUID)[this->uid] = this; + + FOREACH_MOD(I_OnCreateBot, OnCreateBot(this)); // If we're synchronised with the uplink already, send the bot. if (Me && Me->IsSynced()) @@ -49,6 +51,8 @@ BotInfo::BotInfo(const Anope::string &nnick, const Anope::string &nuser, const A BotInfo::~BotInfo() { + FOREACH_MOD(I_OnDelBot, OnDelBot(this)); + // If we're synchronised with the uplink already, send the bot. if (Me && Me->IsSynced()) { |