mirror of
https://github.com/anope/anope.git
synced 2026-06-28 23:06:39 +02:00
Fixed compile
This commit is contained in:
+6
-6
@@ -9,8 +9,8 @@
|
||||
#include "modules.h"
|
||||
#include "commands.h"
|
||||
|
||||
patricia_tree<BotInfo *, ci::ci_char_traits> BotListByNick;
|
||||
patricia_tree<BotInfo *> BotListByUID;
|
||||
Anope::insensitive_map<BotInfo *> BotListByNick;
|
||||
Anope::map<BotInfo *> BotListByUID;
|
||||
|
||||
BotInfo *BotServ = NULL;
|
||||
BotInfo *ChanServ = NULL;
|
||||
@@ -46,9 +46,9 @@ BotInfo::BotInfo(const Anope::string &nnick, const Anope::string &nuser, const A
|
||||
else
|
||||
this->UnsetFlag(BI_CORE);
|
||||
|
||||
BotListByNick.insert(this->nick, this);
|
||||
BotListByNick[this->nick] = this;
|
||||
if (!this->uid.empty())
|
||||
BotListByUID.insert(this->uid, this);
|
||||
BotListByUID[this->uid] = this;
|
||||
|
||||
// If we're synchronised with the uplink already, send the bot.
|
||||
if (Me && Me->IsSynced())
|
||||
@@ -118,8 +118,8 @@ void BotInfo::SetNewNick(const Anope::string &newnick)
|
||||
|
||||
this->nick = newnick;
|
||||
|
||||
UserListByNick.insert(this->nick, this);
|
||||
BotListByNick.insert(this->nick, this);
|
||||
UserListByNick[this->nick] = this;
|
||||
BotListByNick[this->nick] = this;
|
||||
}
|
||||
|
||||
void BotInfo::RejoinAll()
|
||||
|
||||
Reference in New Issue
Block a user