mirror of
https://github.com/anope/anope.git
synced 2026-06-26 14:56:39 +02:00
Fixed storing mode locks
This commit is contained in:
+6
-1
@@ -13,7 +13,7 @@
|
||||
Anope::insensitive_map<BotInfo *> BotListByNick;
|
||||
Anope::map<BotInfo *> BotListByUID;
|
||||
|
||||
BotInfo::BotInfo(const Anope::string &nnick, const Anope::string &nuser, const Anope::string &nhost, const Anope::string &nreal, const Anope::string &bmodes) : User(nnick, nuser, nhost, ts6_uid_retrieve()), Flags<BotFlag, BI_END>(BotFlagString), Serializable("BotInfo"), botmodes(bmodes)
|
||||
BotInfo::BotInfo(const Anope::string &nnick, const Anope::string &nuser, const Anope::string &nhost, const Anope::string &nreal, const Anope::string &bmodes) : User(nnick, nuser, nhost, ts6_uid_retrieve()), Flags<BotFlag, BI_END>(BotFlagString), botmodes(bmodes)
|
||||
{
|
||||
this->realname = nreal;
|
||||
this->server = Me;
|
||||
@@ -64,6 +64,11 @@ BotInfo::~BotInfo()
|
||||
BotListByUID.erase(this->uid);
|
||||
}
|
||||
|
||||
Anope::string BotInfo::serialize_name() const
|
||||
{
|
||||
return "BotInfo";
|
||||
}
|
||||
|
||||
Serializable::serialized_data BotInfo::serialize()
|
||||
{
|
||||
serialized_data data;
|
||||
|
||||
Reference in New Issue
Block a user