1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 18:16:38 +02:00

Add botserv bot usermode config option

This commit is contained in:
Adam
2013-05-18 14:26:18 -04:00
parent 51b7d53108
commit 14dc142a92
5 changed files with 25 additions and 3 deletions
+4
View File
@@ -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())
{