From fde83f6564c38635c7bfebd7edb60f30b012189c Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 26 Jul 2013 21:40:16 -0400 Subject: Rethink jupe/squit thing somewhat. Workaround for the inspircd rsquit/squit mess --- src/bots.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/bots.cpp') diff --git a/src/bots.cpp b/src/bots.cpp index b85bd2534..315045b86 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -106,7 +106,7 @@ Serializable* BotInfo::Unserialize(Serializable *obj, Serialize::Data &data) return bi; } -void BotInfo::Up() +void BotInfo::GenerateUID() { if (!this->uid.empty()) throw CoreException("Bot already has a uid?"); @@ -114,17 +114,6 @@ void BotInfo::Up() this->uid = Servers::TS6_UID_Retrieve(); (*BotListByUID)[this->uid] = this; UserListByUID[this->uid] = this; - this->server = Me; - ++this->server->users; -} - -void BotInfo::Down() -{ - BotListByUID->erase(this->uid); - UserListByUID.erase(this->uid); - --this->server->users; - this->server = NULL; - this->uid = ""; } void BotInfo::SetNewNick(const Anope::string &newnick) -- cgit