diff options
author | Adam <Adam@anope.org> | 2014-05-28 12:11:45 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-05-28 12:22:39 -0400 |
commit | f97e339314257fa37cfcab0c2289fb6812e32e85 (patch) | |
tree | a1c9d352a771e0bb7d39d42178a7246d6f2c5434 /include/extensible.h | |
parent | f29e1cf383529a1a29f02b0669d973f5ee0b7a66 (diff) | |
parent | ba46b8e4abd8fef991732d5c52c858a229894a25 (diff) |
Merge branch '2.0' into 2.1
Conflicts:
.travis.yml
src/config.cpp
src/version.sh
Diffstat (limited to 'include/extensible.h')
-rw-r--r-- | include/extensible.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/extensible.h b/include/extensible.h index ef429b919..7f392ab8a 100644 --- a/include/extensible.h +++ b/include/extensible.h @@ -175,6 +175,8 @@ class SerializableExtensibleItem : public PrimitiveExtensibleItem<T> T t; if (data[this->name] >> t) this->Set(e, t); + else + this->Unset(e); } }; @@ -195,6 +197,8 @@ class SerializableExtensibleItem<bool> : public PrimitiveExtensibleItem<bool> data[this->name] >> b; if (b) this->Set(e); + else + this->Unset(e); } }; |