diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2010-12-19 08:56:31 +0100 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2010-12-19 08:56:31 +0100 |
commit | 184e14ea83412489921367614d63a7c24df3827d (patch) | |
tree | 152c0318684ec36375b55e3553b1f70e8734843e /src/bots.cpp | |
parent | 02476332ea2f5ab3fd766e0ca9d83d67a9a9f122 (diff) | |
parent | 21125cf2cb0dc5f80f9f796fe4c222c36ba2fcc4 (diff) |
Merge branch '1.9' of ssh://anope.git.sourceforge.net/gitroot/anope/anope into 1.9
Diffstat (limited to 'src/bots.cpp')
-rw-r--r-- | src/bots.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index 098404ceb..87a646923 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -75,6 +75,24 @@ BotInfo::~BotInfo() BotListByNick.erase(this->nick); if (!this->uid.empty()) BotListByUID.erase(this->uid); + + if (this->HasFlag(BI_CORE)) + { + if (this == ChanServ) + ChanServ = NULL; + else if (this == BotServ) + BotServ = NULL; + else if (this == HostServ) + HostServ = NULL; + else if (this == OperServ) + OperServ = NULL; + else if (this == MemoServ) + MemoServ = NULL; + else if (this == NickServ) + NickServ = NULL; + else if (this == Global) + Global = NULL; + } } |