diff options
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) |