summaryrefslogtreecommitdiff
path: root/src/bots.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-09-25 15:34:56 -0400
committerAdam <Adam@anope.org>2011-09-25 15:34:56 -0400
commitaf273e3da537ff60edb5f97b8081b550bd56d57d (patch)
tree91056829ec786c49045a580a6a1e733f2a12d977 /src/bots.cpp
parent1f3e96f4adb14955f368edc0f1f9142471fbe9f1 (diff)
Store flags for objects, also fixes bug #1333
Diffstat (limited to 'src/bots.cpp')
-rw-r--r--src/bots.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bots.cpp b/src/bots.cpp
index 928dcb2c1..a10b7b147 100644
--- a/src/bots.cpp
+++ b/src/bots.cpp
@@ -74,6 +74,7 @@ SerializableBase::serialized_data BotInfo::serialize()
data["realname"] << this->realname;
data["created"] << this->created;
data["chancount"] << this->chancount;
+ data["flags"] << this->ToString();
return data;
}
@@ -85,6 +86,7 @@ void BotInfo::unserialize(SerializableBase::serialized_data &data)
bi = new BotInfo(data["nick"].astr(), data["user"].astr(), data["host"].astr(), data["realname"].astr());
data["created"] >> bi->created;
data["chancount"] >> bi->chancount;
+ bi->FromString(data["flags"].astr());
}
void BotInfo::GenerateUID()