mirror of
https://github.com/anope/anope.git
synced 2026-06-25 05:56:38 +02:00
Rethink jupe/squit thing somewhat. Workaround for the inspircd rsquit/squit mess
This commit is contained in:
+1
-12
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user