diff options
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; + } } |