mirror of
https://github.com/anope/anope.git
synced 2026-06-30 09:16:38 +02:00
Fix logging LOG_NORMAL logs in m_sqllog. Fix/add more compat extensible items to ChannelInfo::Unserialize
This commit is contained in:
@@ -91,6 +91,7 @@ class SQLLog : public Module
|
||||
break;
|
||||
case LOG_NORMAL:
|
||||
insert.SetValue("type", "NORMAL");
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
+17
-1
@@ -294,8 +294,8 @@ Serializable* ChannelInfo::Unserialize(Serializable *obj, Serialize::Data &data)
|
||||
data["extensible:SECURE"] >> b;
|
||||
if (b)
|
||||
ci->Extend<bool>("CS_SECURE");
|
||||
data["extensible:PRIVATE"] >> b;
|
||||
b = false;
|
||||
data["extensible:PRIVATE"] >> b;
|
||||
if (b)
|
||||
ci->Extend<bool>("CS_PRIVATE");
|
||||
b = false;
|
||||
@@ -318,6 +318,22 @@ Serializable* ChannelInfo::Unserialize(Serializable *obj, Serialize::Data &data)
|
||||
data["extensible:SECUREFOUNDER"] >> b;
|
||||
if (b)
|
||||
ci->Extend<bool>("SECUREFOUNDER");
|
||||
b = false;
|
||||
data["extensible:RESTRICTED"] >> b;
|
||||
if (b)
|
||||
ci->Extend<bool>("RESTRICTED");
|
||||
b = false;
|
||||
data["extensible:KEEPTOPIC"] >> b;
|
||||
if (b)
|
||||
ci->Extend<bool>("KEEPTOPIC");
|
||||
b = false;
|
||||
data["extensible:SIGNKICK"] >> b;
|
||||
if (b)
|
||||
ci->Extend<bool>("SIGNKICK");
|
||||
b = false;
|
||||
data["extensible:SIGNKICK_LEVEL"] >> b;
|
||||
if (b)
|
||||
ci->Extend<bool>("SIGNKICK_LEVEL");
|
||||
/* end compat */
|
||||
|
||||
return ci;
|
||||
|
||||
Reference in New Issue
Block a user