1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 13:26:39 +02:00

Read most of the old common flags for compat

This commit is contained in:
Adam
2013-07-04 22:37:54 -04:00
parent 7edc76f7fb
commit 55199f0a4c
2 changed files with 48 additions and 0 deletions
+28
View File
@@ -121,6 +121,34 @@ Serializable* NickCore::Unserialize(Serializable *obj, Serialize::Data &data)
data["extensible:PRIVATE"] >> b;
if (b)
nc->Extend<bool>("NS_PRIVATE");
b = false;
data["exensible:AUTOOP"] >> b;
if (b)
nc->Extend<bool>("AUTOOP");
b = false;
data["extensible:HIDE_EMAIL"] >> b;
if (b)
nc->Extend<bool>("HIDE_EMAIL");
b = false;
data["extensible:HIDE_QUIT"] >> b;
if (b)
nc->Extend<bool>("HIDE_QUIT");
b = false;
data["extensible:MEMO_RECEIVE"] >> b;
if (b)
nc->Extend<bool>("MEMO_RECEIVE");
b = false;
data["extensible:MEMO_SIGNON"] >> b;
if (b)
nc->Extend<bool>("MEMO_SIGNON");
b = false;
data["extensible:NO_EXPIRE"] >> b;
if (b)
nc->Extend<bool>("NO_EXPIRE");
b = false;
data["extensible:KILLPROTECT"] >> b;
if (b)
nc->Extend<bool>("KILLPROTECT");
/* end compat */
return nc;