diff options
author | Adam <Adam@anope.org> | 2013-07-26 21:40:16 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-07-26 21:40:16 -0400 |
commit | fde83f6564c38635c7bfebd7edb60f30b012189c (patch) | |
tree | f4a56f82280ecb1f3ed3291b44c6afda72a0fce2 /src/bots.cpp | |
parent | f0f43cf4264c68d638cd5920877d088c6c278435 (diff) |
Rethink jupe/squit thing somewhat. Workaround for the inspircd rsquit/squit mess
Diffstat (limited to 'src/bots.cpp')
-rw-r--r-- | src/bots.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
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) |